Serving officers in the NSW Police Force have been caught trolling and harassing an MP with a slew of racist and sexist posts on social media.

Police personnel at Sydney City Local Area Command, Kings Cross, Bankstown, Cabramatta – and even within senior management – have been implicated in an extraordinary attack on the Greens member for Newtown, Jenny Leong. The MP has been devastated by a string of Facebook posts that mocked her ethnic background and referred to her father as a "swamp monkey".

The cyber-bullying follows the Greens' latest bid, in the NSW Parliament, to repeal the state's controversial sniffer dog drug detection program. A Fairfax Media investigation has found that in one online attack, a city-based detective posted a modified image of Ms Leong's own Facebook profile picture, adding the words: "One condom could have prevented this from happening". The post was 'liked' by four other police employees including Detective Inspector Denby-Lea Eardley – a senior manager in Human Resources.

On Saturday, Ms Leong announced she had referred the matter to the Police Integrity Commission. In doing so, she called on NSW Police Commissioner Andrew Scipione to take immediate disciplinary action against those involved. "The role of the police is to protect the community from harmful and aggressive behaviour ... it is completely unacceptable they would be actively contributing to sexist and racist attacks," she said.