The VMware Carbon Black Tech Zone is live! Checkout this great resource: Mastering Carbon Black Audit & Remediation.

Malware Hunt for Path Changes

Description: BASH environmental variables.

What The Data Shows: Malware can change variable such as $PATH to get their binaries to be run instead of legitimate copies.

SQL: 

SELECT p.name,pe.key,pe.value 
FROM processes AS p
JOIN process_envs AS pe
  ON p.pid = pe.pid
WHERE p.name = "bash";

 

 

0 Votes
3 Comments
Query_Admin
Community Manager
Community Manager
Status changed to: Approved
 
thinson
Carbon Black Employee

I had to remove a pair of " from the WHERE statement to get this working.

WHERE p.name = "bash";

 

esullivan
Carbon Black Employee

@thinson thanks for the heads up, query has been updated.