hex - its a metric socket head cap screw. dont know the size but my standard bunch of socket bits fitted without problem.
getting the filter on and off is a different matter though. have yet to find and economic oil filter tool (BMW want something like £45!!!)