Skip to content
Write-up Intermediate

Analyzing A Reverse Shell Correlating Iocs

A malware sample was analysed statically and dynamically, and it was found to call out to a DNS record over port 443 and to open a command shell back to a listener. An attacker controlling that endpoint could run commands on the infected host through the reverse shell.

Fenrir Follow

Published on systemweakness.com

This document outlines a systematic approach to analyzing potentially malicious software using static and dynamic analysis techniques. The process begins with static analysis, where tools like CMDR and Floss are utilized to inspect the sample for any discernible information.

FENRIR, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the sample is a remote access trojan that beacons to a hard-coded DNS name over HTTPS and then spawns a shell connected to the remote endpoint.

Impact

The malware could give a remote party an interactive command shell on the infected machine, though the analysis was done in a controlled lab with simulated network services.

What the attacker needed

Malware sample to analyse; isolated lab with simulated internet; administrator rights in the lab

How it was found

  1. Run static analysis tools on the sample and review the output for useful strings
  2. Check the sample's imported API calls in PEStudio for anything notable
  3. Start an isolated lab with simulated internet and packet capture running
  4. Execute the sample as administrator and observe DNS queries in the capture
  5. Add process monitoring filters and run the sample again to see the connection details
  6. Set up a listener, run the sample again, and observe the shell that connects back

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a write-up of analysing a suspicious program, not a website bug. The analyst ran the program in a safe lab, watched its network traffic, and saw it connect back to a machine the analyst controlled, which then gave a command prompt. That kind of connection is called a reverse shell: the infected machine reaches out to the attacker instead of the attacker reaching in.

Similar reports

Same bug class and techniques, clearest first.