cd /news/ai-agents/llms-don-t-know-what-they-don-t-know… · home › topics › ai-agents › article
[ARTICLE · art-177557] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

LLMs don't know what they don't know: adding threat intel to my AI security tool

A developer built SOC-GPT, an AI alert triage system that uses multi-LLM consensus voting (a local Llama model plus Groq's gpt-oss-120b), and added an AbuseIPDB enrichment layer that runs before the LLMs see an alert. The enrichment step supplies IP reputation data such as abuse confidence scores, Tor exit-node status and report counts, which turned a hedged 'SUSPICIOUS' verdict at 70% confidence on an SSH brute-force alert into a confident, context-grounded assessment. The developer designed enrichment to fail safe, skip private IPs and return a typed dataclass so future VirusTotal and GeoIP sources can be added without breaking the pipeline.

recommendation

Enrich alerts with external threat-intel before LLM triage, fail safe to empty data on errors, and skip private IPs to save API quota.

more in playbook: Designing agent systems
by read4 min views8 publishedNov 28, 2026

Earlier this week I shipped SOC-GPT, an AI alert triage system using multi-LLM consensus voting (local Llama + Groq's gpt-oss-120b). On the sample alert suite it hit 6/6 verdict accuracy.

I was happy. Until I actually read the reasoning the LLMs were writing.

For an SSH brute-force alert from 185.220.101.34, the AI's reasoning was something like: "Multiple failed SSH attempts from a single IP may indicate malicious intent, but could also be a legitimate user with a forgotten password. Recommend escalation."

That hedge isn't the AI being dumb. It's the AI being honest about what it doesn't know. It can't magically know that 185.220.101.34 is a known Tor exit node that's been reported 368 times in the last 90 days with a 100/100 abuse confidence score.

Nothing in the alert payload told it. So it did what any reasonable analyst would do with no context — it hedged.

Common Crawl doesn't include real-time threat intelligence. Even the best prompt engineering in the world can't compensate for missing facts about an IP that first appeared on abuse feeds two weeks ago.

So I added an enrichment layer — a step that runs BEFORE the LLM, pulling structured external context into the alert before the AI ever sees it.

Alert arrives via webhook
    ↓
Enrichment service queries AbuseIPDB for source IP
    ↓
Enrichment data merged into alert dict
    ↓
LLMs analyze alert + enrichment context together
    ↓
Verdict + action

AbuseIPDB's free tier gives 1,000 IP checks per day, no credit card required. It returns abuse confidence (0–100), country, ISP, usage type (datacenter / residential / Tor exit), and how many times the IP has been reported.

The enrichment service is a dataclass plus one async method:

@dataclass
class EnrichmentData:
    abuse_score: int | None = None
    country: str | None = None
    isp: str | None = None
    usage_type: str | None = None
    total_reports: int = 0
    is_tor: bool = False
    is_whitelisted: bool = False
    source: str = "none"

    def summary(self) -> str:
        if self.source == "none":
            return "No external enrichment data available."
        parts = []
        if self.abuse_score is not None:
            parts.append(f"abuse_confidence_score={self.abuse_score}/100")
        if self.is_tor:
            parts.append("tor_exit_node=YES")
        return " | ".join(parts)

class EnrichmentService:
    async def enrich(self, alert_json: dict) -> EnrichmentData:
        source_ip = alert_json.get("source_ip")
        if not source_ip or self._is_private_ip(source_ip):
            return EnrichmentData()

        try:
            return await self._query_abuseipdb(source_ip)
        except Exception as e:
            logger.error("Enrichment failed: %s", e)
            return EnrichmentData()  # fail safe — never block triage

Three design choices worth calling out:

Fail safe. If AbuseIPDB is down or rate-limited, enrichment returns empty data instead of crashing. The LLMs still get the alert — just without the extra context. Enrichment should degrade, not break the pipeline.

Skip private IPs. 10.x.x.x, 192.168.x.x, 172.16–31.x.x are internal. AbuseIPDB has no data on them and querying wastes quota. A simple prefix check handles it.

Typed dataclass, not a nested dict. The result is a real object with real fields. When I add VirusTotal (file hash reputation) and GeoIP next, they slot into new fields without breaking anything downstream.

Same alert. Same LLMs. Same prompt. Only the context changed.

Before enrichment:

"Multiple failed SSH attempts from a single IP may indicate malicious intent, but could also be a legitimate user. Recommend escalation for human review."

Verdict: SUSPICIOUS · Confidence: 70%

After enrichment:

"The source IP 185.220.101.34 is a known Tor exit node (100/100 abuse confidence, 368 reports in 90 days), targeting the root account with 15 failed attempts in 60 seconds. This matches a classic credential-stuffing pattern. Immediate IP block recommended."

Verdict: MALICIOUS · Confidence: 96%

Night and day.

Most "make your LLM smarter" advice is about better prompts, longer context, chain-of-thought, fine-tuning. All real techniques.

But for any domain where the AI needs real-world data to reason correctly — security, finance, medical, legal — the biggest leverage usually isn't making the model cleverer. It's making sure the model has the facts.

Context > cleverness.

Repo: github.com/0mer-byte/soc-gpt

About me: I'm a senior at Rock Ridge HS in Ashburn, VA. Taking CompTIA Security+ in December. Competing in CyberPatriot. Looking for data center / SOC internships for summer 2027 anywhere in Northern Virginia. If you work at AWS, Oracle Cloud, Equinix, Digital Realty, QTS, CoreSite, Vantage, HITT, M.C. Dean, or anywhere in the NoVA ecosystem, I'd love to connect.

── more in #ai-agents 4 stories · sorted by recency
── more on @soc-gpt 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/llms-don-t-know-what…] indexed:0 read:4min 2026-11-28 · —