The man police allege is behind Melbourne’s infamous Pam the Bird graffiti is being probed by police after a knife attack last month, a court has been told.