cat /proc/<PID>/maps
I'm going to show you how in this thread.
#DFIR #sandflysecurity

Use ps with tree view to find our candidates for investigation:
ps auxwf | grep "\["
#DFIR #sandflysecurity

cat /proc/<PID>/maps
Our suspect below has entries under maps. Bad news.
#DFIR #sandflysecurity

ps auxww | grep \\[ | awk '{print $2}' | xargs -I % sh -c 'echo PID: %; cat /proc/%/maps' 2> /dev/null
Any #Linux process showing data here should be investigated.
#DFIR #sandflysecurity

ps auxwf | grep \\[ | grep -v "\_" | grep -v kthreadd
#DFIR #sandflysecurity

sandflysecurity.com