The father of two brothers accused of bashing of one of Victoria's top cops has been charged after allegedly threatening police in a string of menacing social media posts.

Jared Pihlgren, also known as Pilgren, took to Facebook in the hours after his two sons were arrested in Malvern East for allegedly attacking off-duty Assistant Police Commissioner Chris O'Neill so severely he was hospitalised with bleeding on the brain and cracked ribs.

The father is the first person to be charged under new laws introduced earlier this year that make it an offence to intimidate a law enforcement officer, or a member of their family.

Section 31D of the Crimes Act makes it illegal to intimidate a law enforcement officer, or a family member of a law enforcement officer, and carries a maximum penalty of 10 years' jail.