Hunt IO Shares Network Signatures for Detecting Pyramid C2 Servers

· Original article ↗

Summary

Hunt IO describes HTTP response patterns and a query to identify Pyramid C2 servers, reporting nine matching IP addresses. Three overlapped with infrastructure previously linked to a RansomHub affiliate’s Python-based backdoor.

Key points

  • Pyramid is an open-source Python post-exploitation framework whose HTTP/S server can deliver encrypted payloads and support command-and-control.
  • Its unauthenticated responses may include HTTP 401, a distinctive JSON error body, a Basic authentication realm, and a BaseHTTP/Python server header.
  • Hunt IO combined these indicators into a structured query and identified nine matching IP addresses across several ports.
  • Three matching IPs had previously appeared in GuidePoint Security reporting on a Python-based backdoor associated with a RansomHub affiliate.
  • Hunt IO noted that one other server resolved to recently registered domains resembling a Polish marketing service, but found no associated malicious samples.
  • The article presents the indicators as a way for defenders to identify and monitor potentially related infrastructure; the findings do not confirm that every matching server is malicious.

Article Details

Defense Focus
Identify and monitor Pyramid post-exploitation servers using distinctive HTTP response patterns.
Detection Methods
  • Search for HTTP 401 responses with the specified response-body SHA-256, a BaseHTTP/0.* Python/3.* server header, WWW-Authenticate: Basic realm="Demo Realm", and Content-Type: application/json.
  • Validate candidate servers by checking that the headers match the expected JSON error response: { "success": false, "error": "No auth header received" }.
  • Track matching servers over time and monitor or preemptively block suspect IP addresses.
Data Sources
  • HTTP status codes
  • HTTP response-body content and SHA-256 hash
  • HTTP Server, WWW-Authenticate, and Content-Type headers
  • Observed server IP addresses and associated domains
Rule Types
  • Structured HTTP search query combining status, response-body hash, server-header pattern, and authentication/content headers
Platforms
  • Hunt
Defensive Actions
  • Use the combined response characteristics to identify and validate likely Pyramid servers while reducing false positives.
  • Monitor identified infrastructure and consider blocking suspect IP addresses before they are used in attacks.

Indicators of compromise

TypeIndicatorContext
DOMAINemdr-traumatherapie[.]infoDomain listed in the article's indicators table as associated with the identified server at 38.180.195[.]187.
DOMAINthiscode[.]infoDomain listed in the article's indicators table as associated with the identified server at 38.180.195[.]187.
IPV4104[.]238[.]61[.]144Address identified by the authors as a Pyramid-related server and previously listed in GuidePoint Security's RansomHub analysis as associated with a Python-based backdoor.
IPV415[.]222[.]251[.]55Listed in the article's network observables and indicators table among identified Pyramid-related infrastructure.
IPV4162[.]252[.]172[.]12Listed in the article's network observables and indicators table among identified Pyramid-related infrastructure.
IPV438[.]146[.]28[.]93Listed in the article's network observables and indicators table among identified Pyramid-related infrastructure.
IPV438[.]180[.]195[.]187Listed in the article's network observables and indicators table among identified Pyramid-related infrastructure.
IPV445[.]82[.]85[.]50Address identified by the authors as a Pyramid-related server and previously listed in GuidePoint Security's RansomHub analysis as associated with a Python-based backdoor.
IPV454[.]38[.]94[.]225Address identified as a Pyramid-related server; the authors had not identified malicious samples associated with it.
IPV485[.]208[.]139[.]131Listed in the article's network observables and indicators table among identified Pyramid-related infrastructure.
IPV492[.]118[.]112[.]208Address identified by the authors as a Pyramid-related server and previously listed in GuidePoint Security's RansomHub analysis as associated with a Python-based backdoor.
SHA25654477efe7ddfa471efdcc83f2e1ffb5687ac9dca2bc8a2b86b253cdbb5cb9c84SHA-256 hash of the HTTP response body used as a Pyramid-server detection observable.

MITRE ATT&CK

Threat Actors

Malware

Products

Tools

Countries

Related Articles