IDS flags the scan. A model spots the timing. The operator wants to know which part gave it away. That is the useful question behind Flea Flicker: what does a detector actually observe, and which changes alter its verdict?
The original article answered too much of that question without a test. It printed enable_ghost_mode() and enable_shadow_mode() calls that are absent from the current FleaFlickerEvasion class, flea-flicker --mode ghost command wrappers the parser does not implement, and scan transcripts with no recorded IDS run behind them. Those examples and the commercial-evasion claims are withdrawn. A command box has to be something a reader can run, not a product roadmap wearing a prompt.
The detection problem
Built this after a pentest where the client had deployed ML-based IDS. Standard Nmap was instant detection. Metasploit payloads got blocked immediately. Needed packet manipulation before IDS could analyze anything.
That is the problem the toolkit set out to address. Its effectiveness still needs a recorded comparison against the detector, with delivery and alerts checked on both sides.
The actual packet path
netfilter.py defines PentestNetFilter. It captures through Scapy's sniff() callback, constructs packet metadata, evaluates rules, logs decisions, and can request an output block through iptables. This is not an inline kernel packet-rewriting hook. A captured packet and a block rule added afterward are different points in the traffic path. The rule's existence cannot prove the triggering packet was prevented from leaving.
The callback also skips destinations beginning with 127. and 192.168.. That matters to any proposed internal-network exercise: a filter that bypasses those destinations cannot be assumed to cover the full target range. Other address families and private ranges need their own review.
The source has a packet-modification helper that changes TCP SYN window/sequence fields and can replace an HTTP User-Agent. That is a function to inspect and test, not proof that arbitrary Nmap, Metasploit, or Burp traffic has been transparently wrapped. Changing a port or prefixing bytes does not create a working TLS session or a matching decoder at the destination. The former diagrams silently assumed those missing pieces.
The rule file and the rule order
The verified configuration counts are 54 AI-stealth rules, 100 advanced rules, and 21 default rules. Basic, advanced, and maximum stealth selections loaded 54, 100, and 100 entries in the October 24 check. The earlier constructor defect passed the level name as a filename; the repair selects the actual configuration file.
Loading is only the first boundary. The destination matcher now resolves configured names to IPv4 sets. A wildcard resolves its apex; that does not enumerate every subdomain or prove hostname attribution on a shared address.
A controlled DNS answer made the destination matcher accept a documentation-only IP. The same test showed the generic HTTPS allow winning first for port 443, ahead of a later destination block. A blocklist can contain the right name and still lose to the earlier rule. The engagement report preserves the check and supersedes its older conclusion that the matcher had no address-resolution path.
Inspect the interface before trusting the example
From the repository root, this standard-library check reads the class and CLI definitions without importing the tool, resolving DNS, or opening a socket:
import ast
from pathlib import Path
core = ast.parse(Path("netfilter.py").read_text())
evasion = ast.parse(Path("flea_flicker_evasion.py").read_text())
cls = next(
node for node in evasion.body
if isinstance(node, ast.ClassDef) and node.name == "FleaFlickerEvasion"
)
methods = {node.name for node in cls.body if isinstance(node, ast.FunctionDef)}
assert "enable_ghost_mode" not in methods
assert "enable_shadow_mode" not in methods
flags = sorted({
arg.value
for node in ast.walk(core)
if isinstance(node, ast.Call)
and isinstance(node.func, ast.Attribute)
and node.func.attr == "add_argument"
for arg in node.args
if isinstance(arg, ast.Constant)
and isinstance(arg.value, str)
and arg.value.startswith("--")
})
assert "--stealth-mode" in flags and "--flea-flicker" in flags
assert "--mode" not in flags
print("Current CLI options:", ", ".join(flags))
The parser exposes --config, --interface, --stealth, --stealth-mode, --ai-evasion, --flea-flicker, --interactive, --save-config, and --demo. The current --flea-flicker choices are basic, advanced, maximum, and chaos. They are not a wrapper that accepts an arbitrary trailing scan command.
The separate evasion class includes MAC-changing helpers, timed MAC noise, local trap listeners, and several traffic-generation routines. A timer-driven interface change does not establish rotation every N packets or DHCP continuity. Those were claims in the old article, not results supplied by its evidence.
The footprint is part of the result
The original memory-only and no-logs claims do not match the code. log_event() emits CEF-formatted records through syslog, configuration can be saved, and the tool changes firewall state when blocking. Minimal console output is not an absence of artifacts.
One cleanup path needs attention before a live run: cleanup_iptables() flushes the entire OUTPUT chain rather than tracking and removing only its own rules. That can remove unrelated policy. This review did not execute it, alter an interface, start capture, or change firewall rules. A dedicated owned chain and scoped cleanup would need a separate implementation and verification task.
The defender's experiment
Fragmentation, packet timing, protocol fields, and MAC changes are real things to study. None guarantees that traffic disappears from a detector. A useful comparison needs a named detector and version, equivalent inputs, packet capture on both sides, delivery checks, and alert evidence. Dropping the connection or breaking the protocol does not count as evading detection while preserving the operation.
For the current bench, rule loading and a controlled matcher/precedence check are the evidence. Live capture, enforcement timing, commercial IDS effectiveness, DHCP behavior, and a complete command-wrapping path remain unverified. The next useful result would show one bounded change against one detector, with the resulting traffic and verdict attached. The old “scan completes undetected” transcript did not do that work.
SYN fields and HTTP headers
This is the current modify_packet_for_evasion method, displayed as a callable with the original unused self argument. The imports supply its actual dependencies:
import random
import scapy.all as scapy
from scapy.layers.inet import IP, TCP, UDP
def modify_packet_for_evasion(self, packet):
"""DPI obfuscation + TCP/OS (p0f) fingerprint randomization.
Randomizes TCP window/seq on SYN (an OS/p0f fingerprint field, not JA3 -
JA3 lives in the TLS ClientHello, handled by StealthMode.obfuscate_tls_
fingerprint) and rewrites the HTTP User-Agent for app-layer DPI evasion.
"""
modified = False
# TCP/OS fingerprint randomization (SYN): window size + initial seq
if packet.haslayer(TCP) and packet[TCP].flags == 'S':
packet[TCP].window = random.choice([8192, 16384, 29200, 32768, 65535])
packet[TCP].seq = (packet[TCP].seq + random.randint(1, 100)) & 0xffffffff
modified = True
# DPI Obfuscation (HTTP/DNS)
if packet.haslayer(scapy.Raw):
raw_data = packet[scapy.Raw].load
try:
if b"HTTP/" in raw_data and b"User-Agent:" in raw_data:
import re
stealth_ua = b"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0 Safari/537.36\r\n"
obfuscated_data = re.sub(b"User-Agent:.*?\r\n", stealth_ua, raw_data, flags=re.IGNORECASE)
packet[scapy.Raw].load = obfuscated_data
modified = True
except Exception:
pass
if modified:
if packet.haslayer(IP):
del packet[IP].len
del packet[IP].chksum
if packet.haslayer(TCP):
del packet[TCP].chksum
elif packet.haslayer(UDP):
del packet[UDP].chksum
return packet
The packet replay extracts that method from the checkout without importing the monitor or running its constructor. Scapy 2.6.1 builds only in-memory packets. Eight assertions check the SYN window set, sequence wrap, HTTP header replacement, preserved Host, lowercase-header miss, unchanged UDP body and serialized IP length. Recorded results.
python3 -m venv .packet-replay
.packet-replay/bin/python -m pip install scapy==2.6.1
.packet-replay/bin/python netfilter_packet_replay.py /path/to/flea-flicker-netfilter
The uppercase User-Agent: precondition matters: a lowercase header never reaches the case-insensitive replacement. Changing HTTP payload length also requires stream-aware sequence handling before this could be an inline TCP tool. This run sends nothing and measures no IDS response. It demonstrates bytes the existing function changes, rather than a wrapper command the repository does not implement.
Correction, October 25, 2026: Replaced nonexistent APIs, command wrappers, and unrecorded evasion transcripts with current source paths and the already verified rule behavior. Recorded logging and cleanup behavior. No new packet, firewall, interface, or detector experiment was run in that pass.
Technical follow-through, October 27, 2026: Restored the current mutation function above and checked its actual bytes on in-memory Scapy packets. Eight assertions pass. No packets were transmitted.
github.com/ghostintheprompt/flea-flicker-netfilter
GhostInThePrompt.com // The HTTPS allow matched first. The destination block never got a vote.