RepositoryPythonSGSingapore
lambdasec

lambdasec/frame

The sound, open SAST for modern apps: code, dependencies, secrets, infrastructure and AI, in one tool

134sao
24fork
0issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: sast

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: code-scanning

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: z3

#1 Repository của tuần

Frame

Sound static analysis and LLM reasoning, in one security agent

Tests PyPI version PyPI Downloads GitHub Marketplace License

Frame finds vulnerabilities by following attacker data through your code, across functions, files and layers, and proves each finding with a solver instead of pattern-matching. An optional LLM layer adds recall, then exploits and fixes what was found.

XBOW / ZeroPath AI-SAST benchmark: Frame 78.8% technical and 87.5% business-logic detection, level with ZeroPath and ahead of Semgrep, Snyk and Bearer

Why Frame?

  • Five languages: Python, JavaScript/TypeScript, Java, C# and C/C++.
  • Cross-file by default: a request that enters a controller and reaches a query three files away is one finding.
  • 70+ framework packs: Flask to Spring to ASP.NET to Express, plus your own stack in one TOML file.
  • Dependencies too: lockfiles of 11 ecosystems plus C/C++, matched against OSV offline, ranked by whether attacker data reaches the vulnerable function, with upgrades it plans, applies and verifies against your tests, licence policy, SBOM and VEX.
  • Infrastructure too: Kubernetes manifests checked against the Pod Security Standards (matching the admission controller's own evaluator), Dockerfiles read exactly as BuildKit reads them, Terraform evaluated as HCL evaluates it, and CloudFormation templates with their intrinsic functions; every policy decided with Z3, and what depends on values the files do not give reported as undecided, not guessed.
  • Built for guardrails: scan only what changed, baseline what you accept, verify that a fix removed the bug.
  • Wherever you work: a GitHub Action, a pre-commit hook, and an MCP server for Claude Code, Codex, Cursor and other coding agents.
  • Its own separation logic engine on Z3: entailment, frame inference, bi-abduction and countermodels.
  • Runs on open models, local or hosted, for detection, triage, exploitation and fixing.

Quick start

pip install "frame-security[scan]"
frame scan src/

A three-file Flask app, where the request enters in app.py and the query runs in services/orders.py:

# shop/app.py
@app.route("/orders")
def list_orders():
    customer = request.args.get("customer", "")
    return jsonify(orders.for_customer(customer))

# shop/services/orders.py
def for_customer(name):
    cur.execute("SELECT * FROM orders WHERE customer = '" + name.strip() + "'")
$ frame scan benchmarks/exemplars/quickstart --root benchmarks/exemplars/quickstart
1. [CRITICAL] 🔴 sql_injection
   Location: benchmarks/exemplars/quickstart/shop/services/orders.py:8:4
   Description: Tainted data from 'customer' flows to sql sink
   CWE: CWE-89
   Data flow: shop/app.py:11 -> shop/services/orders.py::for_customer(name)
...
Scanned 4 files: 2 findings (2 critical)

Use a placeholder query, or wrap the value in int(), and the finding goes away.

For dependencies:

frame kb pull --advisories            # cache the advisories once (then everything runs offline)
frame deps --vulns                    # vulnerable dependencies, and whether your code calls the vulnerable function
frame deps --vulns --apply --relock   # upgrade, re-lock, report what is left
frame scan . --sca                    # attacker data reaching a vulnerable function, at the call site

For infrastructure: frame iac . (or frame scan . --iac).

Benchmarks

OWASP score by language: Frame 80.9 Python, 81.5 Java, 80.3 C#, 54.4 C/C++, 43.0 JavaScript; Semgrep 4.5, 15.7, 14.2, -14.9, 10.0

Cross-file flows: Frame finds 10/10 in four real apps with 0 false alarms on 33 safe twins; CodeQL 7/10 with 5 false alarms; Semgrep stock packs 7/10 with 21

BenchmarkWhat it measuresFrameComparison
XBOW / ZeroPathAI-SAST on 39 web-vuln appsdetect 78.8%, FP 26.3%ZeroPath 80% / 25%, Semgrep 54% / 45%
Endor Labs corpus193 vulns in 5 production appsrecall 0.67, precision 0.51Semgrep 0.52 / 0.40
RealVuln IDOR/BOLABroken authorization, 4 real apps6/8 found, precision 1.000 false positives on safe controls
CVE-BenchDetect, exploit, fix on 10 live CVEs5 / 4 / 4 of 10each stage verified on a live target
SusVibes181 real-CVE Python pairsrecall 0.14, precision 0.56Semgrep 0.06 / 0.55
Cross-file exemplarsHand-labelled precision on 4 real apps98%CodeQL 95%

Methods and every suite, including SL-COMP for the engine, are in benchmarks/README.md.

Documentation

UsageScanning, GitHub Action, pre-commit hook and MCP server, baselines and verify, suppressions, configuration, every command and flag, environment variables, Python API
DependenciesSupported ecosystems, advisories, reachability, upgrade plans, code mitigation, licences, SBOM, VEX, CI
CoverageCross-file resolution per language, supported frameworks, writing a pack, vulnerability classes
Infrastructure as codeKubernetes, Dockerfiles, Terraform and CloudFormation, how close they are to Kubernetes, BuildKit and HCL, writing policies, how Z3 decides them
AI layerDetect, triage, exploit and fix with any OpenAI-compatible model, including on-device
Separation logic engineThe prover under the scanner: capabilities, syntax, CLI, Python API, SL-COMP results
RoadmapWhere Frame is going: SAST gaps, the knowledge base, SCA, secrets and IaC, AI app security, autonomous pentesting
ExamplesRunnable walkthroughs with real output: dependencies end to end, mitigations, adapting to a breaking upgrade, secrets, Kubernetes, AI apps and MCP servers
ExemplarsThe quickstart app, a vulnerable and safe app per framework, and the cross-file comparison

Contributing

pip install -e ".[dev]"
python -m pytest tests/ -n auto
ruff check frame tests benchmarks

CLAUDE.md is the engineering map of the codebase. To add a framework, write a pack under frame/sil/packs/data/<language>/ and a vulnerable/safe app pair under benchmarks/exemplars/frameworks/; the fixture test checks both.

License

Apache 2.0

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
trailofbits/manticore

Symbolic execution tool

3.9k
Jun 24, 2026
RepositoryPython
secfoo-com/secfoo

Security review, orchestrated by your coding agent. SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code, Copilot, Codex, Gemini, Cursor or an API key. Reads your design docs, Confluence and Jira through MCP. SARIF output for CI.

1.1k
Dec 2, 2026
RepositoryTypeScript
openai/codex-security

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

14.5k
Dec 2, 2026
RepositoryGo
filipi86/drogonsec

High-performance open-source security scanner combining SAST, SCA, Secret Detection, and IaC analysis, built for developers and CI/CD pipelines, using AI for recommendation!

223
Oct 26, 2026
RepositoryPython
elementalsouls/Claude-BugHunter

A Claude Code skill bundle for bug hunting and external red-team work - 85 skills, 16 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

32.8k
Dec 2, 2026
RepositoryJavaScript
OWASP/CheatSheetSeries

The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics.

34.2k
Nov 29, 2026
RepositoryPython
ConsenSysDiligence/mythril

Mythril is a symbolic-execution-based securty analysis tool for EVM bytecode. It detects security vulnerabilities in smart contracts built for Ethereum and other EVM-compatible blockchains.

4.3k
Apr 27, 2026
RepositoryPython
pschanely/CrossHair

An analysis tool for Python that blurs the line between testing and type systems.

1.4k
Nov 27, 2026
RepositoryPython
mrwadams/stride-gpt

An AI-powered threat modeling tool that leverages OpenAI's GPT models to generate threat models for a given application based on the STRIDE methodology.

1.2k
Nov 19, 2026