logo

How to Build a 404 page not found C2

ID: ea4bcc6f-b18d-598c-b994-f723c7e1f634

STIX ID: report--ea4bcc6f-b18d-598c-b994-f723c7e1f634

Feed Name: Black Hills Infosec Blog

Threat Score
50/100

Date Published: 2016-07-20

Date Updated: 2026-04-27

Author: BHIS

...
...

This report demonstrates a proof-of-concept covert C2 technique that embeds base64-encoded commands inside HTML comments on HTTP 404 (File Not Found) pages; the author details server configuration, a client that detects 404 responses, decodes and executes commands on Windows/Linux, and a simple listener to receive command output, with a demo showing remote file creation. The write-up references prior research and provides source code links, emphasizing that the technique is stealthy and easily overlooked by typical 404 monitoring but requires initial compromise or control of a web server.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.