feat: AI-driven threat detection — behavioral analysis, external threat intel, prompt injection signatures #68
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: Attackers now use LLMs to craft SQL injection payloads with natural language variation, run credential stuffing with human-like timing jitter, and send prompt injection strings to LLM-backed APIs. Static regex signatures miss these because payloads mutate. The existing cybersec zero-shot scorer and 5-stage diagnose pipeline are the right foundation — this issue extends them.
Plan:
circuitforge-plans/turnstone/superpowers/plans/2026-06-17-honeypot-ai-threat-integration.md— Track BScope:
patterns/ai-threats.yaml— LLM-variant SQL injection, credential stuffing behavioral, prompt injection, vulnerability enumeration; all taggedai_threat: truethreat_intel_cachetable (ip, source, fetched_at, expires_at, payload, summary_tags)app/services/threat_intel.py— AbuseIPDB, GreyNoise, Shodan InternetDB clients; async, cached, graceful degradation on missing keysbehavioral_analysisandrate_analysistablesapp/services/behavioral.py— IRI variance analysis, browser fingerprint absence detection, rate-of-fire computation; post-ingest aggregation jobOut of scope: Paid threat intel tiers, ML fine-tuning on AI-generated payloads (separate roadmap item), router firewall API adapters.
Acceptance criteria:
prompt_injection_attemptthreat_intel_cachehas rows from all three feeds for the source IPai_timing_patternRelated: Plan doc —
circuitforge-plans/turnstone/superpowers/plans/2026-06-17-honeypot-ai-threat-integration.md| Honeypot ingestion — #67 | Router API backlog (project_turnstone_router_api_backlog)threat_intel_modegating — corporate/enterprise safetyAfter evaluating Prism-platform integration, external OSINT calls require explicit gating. Every call to AbuseIPDB, VirusTotal, Shodan, or GreyNoise sends the queried IP to a third-party service. For corporate deployments (SOC 2, HIPAA-adjacent, medical device, finance), that is a data governance violation without a signed DPA — even if those services have strong privacy policies.
Adding a
threat_intel_modesetting to control this:offlocal_onlyprismexternal_feedsSystem default:
offPrism scope: Prism is appropriate for prosumer/homelab. NOT recommended for corporate deployments — Prism's modules still call the same external APIs, so data still leaves the network. Gated behind
threat_intel_mode: prism, off unless explicitly configured.cf-orch dependency: Threat intel LLM workloads will use the
threat_analysistask name when cf-orch #17 lands (security-tuned model routing). Tracked as a dependency.Plan doc updated:
circuitforge-plans/turnstone/superpowers/plans/2026-06-17-honeypot-ai-threat-integration.md— Phase 3 checklist and newthreat_intel_mode Configurationsubsection.