**Nightcrawler: Running an AI Pentesting Agent on Your Phone**

PromptCube Novice 2h ago 168 views 3 likes 2 min read

The moment I saw this I hit the repo before reading the README. An LLM-driven pentesting agent that runs fully on-device — no cloud API, no funneling target traffic through some vendor's backend — is exactly the kind of tooling that's been missing from the space. Nightcrawler puts the entire pipeline on your smartphone.

What the agent actually does

Nightcrawler chains a quantized LLM (7B-8B range, think on-device inference) with a set of recon and exploitation primitives. You point it at a target, and it iterates: scan a port, interpret the service banner, pick a technique, run it, read the response, adapt. The agent loop is the real feature here — it's not a shell script that fires the same Nmap flags every time. It behaves like a junior tester who actually checks the output instead of walking through a rigid checklist.

# conceptual flow of the agent loop
while action := agent.plan(scan_results):
    output = run_action(action)
    scan_results += interpret(output)

It's a proper agent loop, not a fancy autocomplete.

Why running locally matters

Most people building AI pentesting tools wire up an LLM API and call it a day. The problem nobody talks about: every prompt you send is metadata about your engagement. For clients under strict NDAs — think pre-acquisition M&A assessments, internal red team scope — shipping their infrastructure details to a third party is a hard no. Running the model on the device means the only artifact is what happens in memory. That alone makes this worth a look, regardless of hardware limits.

Where it falls short (and what's the ceiling)

The smartphone constraint is real. You're not running a 70B model here; the quantized weights keep the reasoning sharp enough for recon and targeted checks, but multi-step chains get slow and battery drains fast. Plugging in for sustained scans is mandatory. RAM matters too — 8GB+ is the sweet spot; you'll notice the model swapping and slowing down below that.

What's genuinely interesting is the direction. A self-contained pentesting agent that fits in a pocket changes the baseline for field engagements. For quick recon, asset mapping, or initial vuln triage on a small internal target, this replaces carrying a laptop. Not for deep exploitation — but nothing says it's meant to be.

Practical notes

Authorization still applies. A local agent doesn't make unauthorized probing legal — keep this to targets you own or have written permission to test. The device constraint also means you're trading model depth for portability, which is a fine trade for scoping work but not for heavy payloads.

Worth pulling the code and giving it a run against your own lab. The on-device approach signals where the whole field of agentic security is getting cheaper and more private — and that's the part that caught my attention.

All Replies (4)

C
CameronCat Intermediate 2h ago
It's easy to overlook that side of AI when everyone's focused on chatbots and image models. The evasion techniques are what get me — makes you wonder how many of these are already out there flying under the radar.
0 Reply
J
Jamie5 Advanced 2h ago
Totally, the evasion rabbit hole runs deep. But it's wild how portable defense gets too — phones are becoming real fight clubs for this.
0 Reply
T
Taylor27 Intermediate 1h ago
Worth mentioning that on-device inference will cook your battery on longer scans—pack a charger.
0 Reply
M
Morgan42 Novice 1h ago
Does it handle MITM on cellular networks or is it strictly local Wi-Fi?
0 Reply

Write a Reply

Markdown supported