The lawyer for Hollywood filmmaker Peter Rodger said that the "family believes the child was the perpetrator".
Alan Shifman said the son had Asperger's syndrome, had trouble making friends and had been receiving professional help.
Mr Shifman added that the family had contacted police about "recent posts on YouTube" by Elliot "regarding suicide and the killing of people". The family is "devastated" and co-operating with police, he said.
More top news
Revenge porn offenders who attempt to magnify their targets' humiliation will face the toughest penalties under new sentencing proposals.
A remarkably mild night with misty low cloud on the hills of Scotland, Wales and north-west England and further rain in places.
The former head of the Diplomatic Service breaks down the hidden meanings behind Theresa May's letter to Donald Tusk