nerdexam
GIAC

GCIH · Question #817

An analyst believes that an attacker used the built-in tool MSBuild to compile msfvenom code. What evidence can the analyst look for to test this theory?

The correct answer is B. Altered copies of MSBuild on the filesystem. When MSBuild.exe is abused as a LOLBin, attackers often copy the binary to non-standard filesystem locations, leaving forensic artifacts that analysts can identify.

Incident Response & Cyber Kill Chain

Question

An analyst believes that an attacker used the built-in tool MSBuild to compile msfvenom code. What evidence can the analyst look for to test this theory?

Options

  • AProgram execution from hidden directories
  • BAltered copies of MSBuild on the filesystem
  • CEncrypted TCP connections
  • DDownloading of a shellcode wrapper

How the community answered

(40 responses)
  • A
    28% (11)
  • B
    53% (21)
  • C
    13% (5)
  • D
    8% (3)

Why each option

When MSBuild.exe is abused as a LOLBin, attackers often copy the binary to non-standard filesystem locations, leaving forensic artifacts that analysts can identify.

AProgram execution from hidden directories

MSBuild abuse does not require hidden directories - the tool compiles inline code directly from a project file, and execution from hidden directories is a separate technique not specific to MSBuild.

BAltered copies of MSBuild on the filesystemCorrect

Attackers frequently copy MSBuild.exe to non-standard directories such as temp folders or user profile paths to evade application whitelisting that only monitors the original binary location; finding copies of MSBuild.exe outside its default path (C:\Windows\Microsoft.NET\Framework\) is direct forensic evidence of LOLBin abuse and confirms the tool was staged for malicious use.

CEncrypted TCP connections

Encrypted TCP connections are artifacts of post-exploitation C2 activity that may follow MSBuild execution, but they are not evidence of the MSBuild compilation step itself.

DDownloading of a shellcode wrapper

Downloading a shellcode wrapper describes attacker preparation activity before using MSBuild, not forensic evidence remaining on the system after the tool was used to compile code.

Concept tested: MSBuild LOLBin filesystem forensic evidence

Source: https://attack.mitre.org/techniques/T1127/001/

Topics

#MSBuild#forensic evidence#LOLBins#living off the land

Community Discussion

No community discussion yet for this question.

Full GCIH Practice