---
title: "Discussion on \"Detect ICMP-Ghost Implant ICMP and DNS Tunnelling C2 Traffic Using PacketSmith Yara-X & ICMP Detection Modules\" | Hashnode"
description: "Discussion on \"Detect ICMP-Ghost Implant ICMP and DNS Tunnelling C2 Traffic Using PacketSmith Yara-X & ICMP Detection Modules\". Introduction\nICMP-Ghost is an open-source tunnelling framework written in pure x64 assembly. What stands out about this framework, compared to other closed- and open-source ones, is the author's claim"
url: "https://hashnode.com/posts/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules/6a7f26a36277c20363537eb4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Detect ICMP-Ghost Implant ICMP and DNS Tunnelling C2 Traffic Using PacketSmith Yara-X & ICMP Detection Modules](https://blog.netomize.ca/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules?utm_source=hashnode&utm_medium=feed)

Introduction ICMP-Ghost is an open-source tunnelling framework written in pure x64 assembly. What stands out about this framework, compared to other closed- and open-source ones, is the author's claim

Aug 14 · 12 min read · blog.netomize.ca  
Read the article

-   [#packetsmith](https://hashnode.com/tag/packetsmith)
-   [#icmp](https://hashnode.com/tag/icmp)
-   [#dns](https://hashnode.com/tag/dns)
-   [#yara-x](https://hashnode.com/tag/yara-x)
-   [#detection-engineering](https://hashnode.com/tag/detection-engineering)
-   [#tra](https://hashnode.com/tag/tra)
-   [#pcap](https://hashnode.com/tag/pcap)
-   [#icmp-ghost](https://hashnode.com/tag/icmp-ghost)
-   [#tunnelling](https://hashnode.com/tag/tunnelling)

## Written by

[Netomize Official Blog](https://hashnode.com/@mfmokbel)

@mfmokbel · Toronto, ON

  
[View profile](https://hashnode.com/@mfmokbel)

Defensive Cybersecurity Consultancy

We empower businesses with cutting-edge software and expert services to navigate the complexities of today's cyber landscape. Secure your network with cutting-edge software and services that ensure your safety and peace of mind!

## Responses 6

Markdown supported · ⌘↵ to post

[commSync](https://hashnode.com/@jm00nj)

[Aug 28](https://hashnode.com/posts/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules/6a7f26a36277c20363537eb4/comment/6a919ce44d09aee62a33da9a)

Hi, I'm the author of ICMP-Ghost.

Good analysis overall; you correctly identified the RDTSC high-bits constraint and the asymmetric ID+SEQ authentication. These are real structural fingerprints.

However, I'd push back on the conclusion that these rules defeat the evasion claims:

All rules target the default public build constants. Changing three values; the auth sum (45000/55000), the mimicry padding sequence, and the DNS fake domain breaks every rule you've written. That's a 5-minute recompile for any operator.

More importantly, the VTable protocol pivot (!D/!I) is completely invisible here. An operator who pivots to DNS mid-session and changes the default chunk size produces traffic none of these rules match.

The XOR key (0x42, +0x07) is also hardcoded and public — but your rules don't decrypt the payload to inspect plaintext commands. That would be the harder, more robust detection approach.

These rules detect the toy/demo build, not a hardened operational variant. The evasion claims hold against production deployments.

-   JM00NJ

[commSync](https://hashnode.com/@jm00nj)

[Aug 28](https://hashnode.com/posts/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules/6a7f26a36277c20363537eb4/comment/6a919ce44d09aee62a33da9a#reply-6a92019c0d9829afd1c2b63d)

That said, I acknowledge that the rules are effective against the default public build, and realistically most users of this tool would compile it as-is without modifying the constants. For that threat model; script kiddies and unsophisticated actors, the detection logic is valid and useful. The original evasion claims hold specifically against a hardened, operationally configured deployment, not the out-of-the-box version.

[Netomize Official Blog](https://hashnode.com/@mfmokbel)

[Aug 30](https://hashnode.com/posts/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules/6a7f26a36277c20363537eb4/comment/6a919ce44d09aee62a33da9a#reply-6a940fd0cf36ef428026406d)

No, it is not the agent sending the first ICMP Echo Reply packet; it is the system's ICMP network stack. This is what I said in the article:

_"For example, when tunnelling an Echo Request packet, first the system's ICMP network stack responds with the same packet's data payload as an Echo Reply packet using the same sequence and identifier numbers, and the second Echo Reply packet is the tunnelling packet carrying the results of a given command, but using different identifier and sequence numbers."_

You can see it in the attached pcap traffic screenshot for packets 5, 6 and 7. Try it on your own, and let me know the results.

I have no issue with your points on scalability.

[Netomize Official Blog](https://hashnode.com/@mfmokbel)

[Aug 30](https://hashnode.com/posts/detect-icmp-ghost-implant-icmp-and-dns-tunnelling-c2-traffic-using-packetsmith-yara-x-icmp-detection-modules/6a7f26a36277c20363537eb4/comment/6a919ce44d09aee62a33da9a#reply-6a94105b31ba50dd3df09151)

Fair enough!
