Seedlabs

VulnConcept: vulnerability-pattern scanner for code and the prose around it

A scanner that finds security risks in both the code and the written design documents around it.

A CI/code-review add-on that flags security-vulnerability concepts wherever they appear — in code diffs and in the natural-language artifacts around them (design docs, tickets, PR comments) — catching risky patterns described in prose before vulnerable code is written. It reads each artifact with a self-hosted coding model and measures how strongly the model's internal vulnerability-detecting patterns fire — patterns isolated with a sparse autoencoder, a tool that breaks a model's internal activity into millions of interpretable pieces. Flags go to human security reviewers with the triggering snippets and a plain-language rationale rather than blocking merges, and each repository calibrates its alert threshold from its own history and reviewer feedback.

Computer ScienceExplainable Artificial Intelligence (XAI)
Multimodal Machine Learning ApplicationsDevSecOps — a CI-pipeline add-on for security teams: when a pull request opens, it scores the diff plus the linked ticket and design doc, queues items for security review with the triggering snippets and a plain-language rationale, and recalibrates its sensitivity from reviewers' true/false-positive verdicts.

Concept

A review-time scanner that runs changed code and linked discussion text (design docs, tickets, PR comments) through a self-hosted, coding-capable language model and scores how strongly its internal vulnerability and code-error patterns fire on each artifact. Those patterns are isolated with a sparse autoencoder (SAE) — a tool that decomposes a model's internal activity into millions of human-interpretable features — so one learned concept can be tracked whether it shows up as actual code or as a paragraph describing an unsafe design. Items above a per-repo calibrated threshold are flagged for human security review with the triggering snippets and a plain-language rationale attached. Positioning: a triage layer on top of syntax-driven static analyzers — static analysis catches known patterns in code; VulnConcept additionally catches a developer describing an unsafe pattern in prose, the earliest stage of a vulnerability's lifecycle.

Why now — the evidence

  • The founding demonstration — production-scale SAEs on Claude 3 Sonnet, up to 34 million features on the middle-layer residual stream — found features for security vulnerabilities and code errors that respond both to concrete instances (actual code) and to abstract discussion of the concept: a single learned concept bridging code and prose, which syntax-based scanners cannot do. Those features were also multilingual, extending coverage to non-English artifacts with no extra work.
  • New evidence strengthens the code side and the feasibility story: SAEs applied to the representations of GPT-2 Small and Gemma 2B, with no fine-tuning of the underlying models, detect bugs in Java functions with an F1 score of up to 89%, consistently outperforming fine-tuned transformer encoder baselines — the first empirical evidence that SAEs can detect software bugs directly from a model's representations [1]. Small, self-hostable models are therefore sufficient for code-side detection, and the interpretable approach outperformed a conventional trained classifier on that benchmark.
  • ActivationReasoning shows that latent features can be organized into a dictionary, mapped to explicit logical propositions at inference time, and composed with logical rules, scaling across tasks including context-sensitive safety [2]. This is the mechanism for explainable flags: firing features become propositions ("this text describes unsanitized input reaching a query") composed into a stated rationale — an answer to both developer trust and explainability obligations.
  • The l2 norm of hidden states formally bounds the activation strength of SAE reasoning features, with sharp late-layer increases marking critical reasoning steps [3]. This suggests a nearly free pre-filter: run the full SAE pass only where hidden-state norms indicate strong feature activity.

Technical path to a working scanner

  • Hosting and real-time querying in CI. Reading internal activations requires access to the model's internals, so the scanner self-hosts its base model with hooks capturing the residual stream at the SAE's trained layer. The SAE encoder adds one matrix multiply (plus a sparsity step) per token, so per-artifact cost is dominated by model inference; scoring covers only the diff and its linked artifacts, not the whole repository. Candidate hosts range from small models already validated with SAEs (Gemma 2B [1]) to larger open coding models (e.g., GLM-4.5), for which SAEs would be trained as part of deployment rather than assumed to exist. The l2-norm signal [3] can gate the SAE pass to skip low-signal artifacts.
  • Calibrating the threshold for a new codebase. Seed labels come from the repo's own history: past security-fix commits, static-analyzer findings, and known CVEs serve as weak labels. The scanner sweeps thresholds on a held-out split of that history — using the same F1-based evaluation methodology as [1] — and picks the operating point that meets a target precision (e.g., at least 80% at pilot start). After launch, every reviewer verdict (true/false positive) feeds back, so the threshold adapts to each repo's noise level; this feedback loop is the control against alert fatigue.

Honest limits and what the pilot must still measure

  • Prose-bridging is demonstrated only on Claude 3 Sonnet, which cannot be self-hosted. [1] proves code-side detection on small open models, but for Java functions only; whether SAEs trained on an open coding model contain equally abstract features that fire on prose — and hold up across programming languages and proprietary coding styles — is the pilot's first test. If they do not, the product narrows to code-side flagging on self-hosted models, and the prose-bridging claim is shelved until a validated open-model equivalent or activation access exists.
  • Benchmark precision is not repo precision. F1 up to 89% [1] was measured on labeled Java functions, and the founding study's own limitations (incomplete feature suite, no rigorous faithfulness evaluation) still stand. Per-repo precision must be measured before any blocking behavior; the product stays a review-time flagging signal with human confirmation.
  • The l2-norm pre-filter is unproven for vulnerability features — [3] demonstrates it for reasoning features — so it is treated as a hypothesis to validate, not a dependency.
  • No conflicting findings surfaced this round, so no claims were retracted, but the evidence base is still demonstrations rather than deployments. Latency and cost at CI scale, cross-language coverage beyond Java, developer trust in activation-based flags, and the regulatory treatment of activation-derived explanations remain open questions for the pilot to measure.

Written by GLM · 17 Nov 2026 · revised 1× with new research (latest 17 Nov 2026, Gemma 4 and GLM)

AI assessment

Backed by 5 papers93

An exceptional, research-backed proposal that leverages mechanistic interpretability to catch security flaws in both design prose and code, offering a high-novelty alternative to traditional static analysis.

Evidence strength
5/5
The idea synthesizes multiple strong papers: SAEs for vulnerability detection in open models [4], the ability of SAEs to bridge prose and code in Claude [2], and a mechanism for explainable logic [3].
Market pull
4/5
Security teams at large enterprises have high urgency to catch design-level flaws before they are coded, and the named beneficiaries are established players in the DevSecOps space.
Novelty & moat
5/5
Unlike the listed catalog ideas which focus on context windows or API grounding, this uses internal model activations (mechanistic interpretability) to detect conceptual vulnerabilities across modalities.
Feasibility
4/5
While the 'prose-bridging' was shown on a closed model, the use of Gemma 2B [4] proves that a small, self-hostable MVP for code-side detection is immediately possible.
Wedge clarity
5/5
The wedge is a specific CI add-on for security triage that flags risky patterns in PRs and design docs, rather than a general-purpose AI coder.
Simplicity / focus
5/5
The product is focused on a single function: a vulnerability-pattern scanner that acts as a triage layer for human reviewers.

Scored by Gemma 4 · 17 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Business analysis

The SWOT analysis reveals a high-innovation potential based on the ability to bridge code and prose, but highlights a critical dependency on whether open-source models possess the same abstract feature representations as proprietary ones. While it offers a unique 'shift-left' advantage by catching design flaws, the primary risk is the gap between academic F1 scores and real-world production precision.

Strengths4

Weaknesses3

Opportunities3

Threats3

Essential for balancing the high technical novelty of SAE-based detection against the significant risks of model hosting and potential false-positive rates. · Generated 2026-11-17 by Gemma 4AI-generatedFull SWOT Analysis →

Who benefits

  • GitHubcompany

    Advanced Security already scans diffs; adding prose-level vulnerability-concept flags on issues and PR discussions extends coverage to the design stage where vulnerabilities are first described.

  • Snykcompany

    Its scanning covers code and dependencies; catching vulnerability concepts in design docs and tickets reaches risks that never appear as syntactically matchable code.

  • Semgrepcompany

    Its rule-based static analysis is syntax-bound; an SAE concept signal complements rules with semantic matching over natural-language artifacts.

  • Security audits of large codebases are expensive; a concept-level triage of repos plus documentation focuses auditor time on the highest-activation areas.

Research it builds on

  1. GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models
    Team, Aohan Zeng, Lv, Xin et al. · 2025 · 669 citations
    All ideas from this paper →
  2. Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet
    Adly Templeton, Tom Conerly, Jonathan Marcus et al. · 2026 · 566 citations
    All ideas from this paper →
  3. ActivationReasoning: Logical Reasoning in Latent Activation Spaces
    Lukas Helff, Härle, Ruben, Wolfgang Stammer et al. · 2025 · 7 citations
    All ideas from this paper →
  4. Are Sparse Autoencoders Useful for Java Function Bug Detection?
    Rui Melo, Cláudia Mamede, Catarino, Andre et al. · 2025 · 6 citations
    All ideas from this paper →
  5. The Tell-Tale Norm: $\ell_2$ Magnitude as a Signal for Reasoning Dynamics in Large Language Models
    Zhang, Jinyang, Hongxin Ding, Yue Fang et al. · 2026 · 4 citations
    All ideas from this paper →
Leave feedback
feasibility