frame-security 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- frame_security-1.0.0/LICENSE +201 -0
- frame_security-1.0.0/PKG-INFO +157 -0
- frame_security-1.0.0/README.md +101 -0
- frame_security-1.0.0/frame/__init__.py +61 -0
- frame_security-1.0.0/frame/__main__.py +17 -0
- frame_security-1.0.0/frame/analysis/__init__.py +14 -0
- frame_security-1.0.0/frame/analysis/footprint.py +334 -0
- frame_security-1.0.0/frame/analysis/formula.py +457 -0
- frame_security-1.0.0/frame/analysis/predicate_matching.py +309 -0
- frame_security-1.0.0/frame/analysis/unification.py +339 -0
- frame_security-1.0.0/frame/arithmetic/__init__.py +9 -0
- frame_security-1.0.0/frame/arithmetic/check.py +213 -0
- frame_security-1.0.0/frame/arithmetic/synth.py +294 -0
- frame_security-1.0.0/frame/checking/__init__.py +9 -0
- frame_security-1.0.0/frame/checking/_checker_core.py +532 -0
- frame_security-1.0.0/frame/checking/_disjunct_handling.py +78 -0
- frame_security-1.0.0/frame/checking/_formula_helpers.py +456 -0
- frame_security-1.0.0/frame/checking/_frame_inference.py +299 -0
- frame_security-1.0.0/frame/checking/_ls_heuristics.py +262 -0
- frame_security-1.0.0/frame/checking/_satisfiability_check.py +152 -0
- frame_security-1.0.0/frame/checking/_unification_matching.py +145 -0
- frame_security-1.0.0/frame/checking/checker.py +176 -0
- frame_security-1.0.0/frame/checking/footprint_check.py +977 -0
- frame_security-1.0.0/frame/checking/frame_inference.py +417 -0
- frame_security-1.0.0/frame/checking/heuristics.py +264 -0
- frame_security-1.0.0/frame/checking/incorrectness.py +484 -0
- frame_security-1.0.0/frame/checking/s2s_normalized.py +373 -0
- frame_security-1.0.0/frame/cli.py +1309 -0
- frame_security-1.0.0/frame/core/__init__.py +10 -0
- frame_security-1.0.0/frame/core/_ast_arrays_bitvecs.py +302 -0
- frame_security-1.0.0/frame/core/_ast_base.py +44 -0
- frame_security-1.0.0/frame/core/_ast_errors.py +137 -0
- frame_security-1.0.0/frame/core/_ast_expressions.py +78 -0
- frame_security-1.0.0/frame/core/_ast_pure.py +189 -0
- frame_security-1.0.0/frame/core/_ast_quantifiers.py +66 -0
- frame_security-1.0.0/frame/core/_ast_security.py +94 -0
- frame_security-1.0.0/frame/core/_ast_spatial.py +144 -0
- frame_security-1.0.0/frame/core/_ast_strings.py +150 -0
- frame_security-1.0.0/frame/core/_lexer.py +131 -0
- frame_security-1.0.0/frame/core/_parser_helpers.py +434 -0
- frame_security-1.0.0/frame/core/ast.py +97 -0
- frame_security-1.0.0/frame/core/parser.py +487 -0
- frame_security-1.0.0/frame/encoding/__init__.py +8 -0
- frame_security-1.0.0/frame/encoding/_bitvec.py +164 -0
- frame_security-1.0.0/frame/encoding/_pure.py +279 -0
- frame_security-1.0.0/frame/encoding/_pure_core.py +544 -0
- frame_security-1.0.0/frame/encoding/_spatial.py +105 -0
- frame_security-1.0.0/frame/encoding/_spatial_core.py +562 -0
- frame_security-1.0.0/frame/encoding/_string.py +70 -0
- frame_security-1.0.0/frame/encoding/_wand.py +426 -0
- frame_security-1.0.0/frame/encoding/_wand_sat_encoding.py +356 -0
- frame_security-1.0.0/frame/encoding/_wand_utils.py +221 -0
- frame_security-1.0.0/frame/encoding/debug_dump.py +37 -0
- frame_security-1.0.0/frame/encoding/encoder.py +374 -0
- frame_security-1.0.0/frame/encoding/regex_parser.py +263 -0
- frame_security-1.0.0/frame/folding/__init__.py +29 -0
- frame_security-1.0.0/frame/folding/_goal_directed_helpers.py +236 -0
- frame_security-1.0.0/frame/folding/apply.py +255 -0
- frame_security-1.0.0/frame/folding/blind.py +272 -0
- frame_security-1.0.0/frame/folding/bud.py +197 -0
- frame_security-1.0.0/frame/folding/cyclic_unfold.py +413 -0
- frame_security-1.0.0/frame/folding/goal_directed.py +603 -0
- frame_security-1.0.0/frame/folding/hierarchical.py +172 -0
- frame_security-1.0.0/frame/folding/utils.py +83 -0
- frame_security-1.0.0/frame/folding/verify.py +699 -0
- frame_security-1.0.0/frame/heap/__init__.py +11 -0
- frame_security-1.0.0/frame/heap/_fold_proposals.py +645 -0
- frame_security-1.0.0/frame/heap/_heap_types.py +97 -0
- frame_security-1.0.0/frame/heap/graph.py +469 -0
- frame_security-1.0.0/frame/heap/graph_analysis.py +605 -0
- frame_security-1.0.0/frame/lemmas/__init__.py +9 -0
- frame_security-1.0.0/frame/lemmas/_lemma_application.py +1274 -0
- frame_security-1.0.0/frame/lemmas/_matcher.py +260 -0
- frame_security-1.0.0/frame/lemmas/_substitution.py +240 -0
- frame_security-1.0.0/frame/lemmas/base.py +831 -0
- frame_security-1.0.0/frame/lemmas/compositional.py +302 -0
- frame_security-1.0.0/frame/lemmas/dll_lemmas.py +541 -0
- frame_security-1.0.0/frame/lemmas/list_lemmas.py +536 -0
- frame_security-1.0.0/frame/lemmas/other_lemmas.py +328 -0
- frame_security-1.0.0/frame/lemmas/taint_lemmas.py +317 -0
- frame_security-1.0.0/frame/lemmas/validator.py +288 -0
- frame_security-1.0.0/frame/lemmas/wand_lemmas.py +139 -0
- frame_security-1.0.0/frame/predicates/__init__.py +91 -0
- frame_security-1.0.0/frame/predicates/base.py +246 -0
- frame_security-1.0.0/frame/predicates/base_registry.py +459 -0
- frame_security-1.0.0/frame/predicates/dll_predicates.py +60 -0
- frame_security-1.0.0/frame/predicates/list_predicates.py +373 -0
- frame_security-1.0.0/frame/predicates/lsso_predicates.py +48 -0
- frame_security-1.0.0/frame/predicates/parsed.py +305 -0
- frame_security-1.0.0/frame/predicates/registry.py +402 -0
- frame_security-1.0.0/frame/predicates/skiplist_predicates.py +128 -0
- frame_security-1.0.0/frame/predicates/sorted_predicates.py +60 -0
- frame_security-1.0.0/frame/predicates/tree_predicates.py +88 -0
- frame_security-1.0.0/frame/preprocessing/__init__.py +8 -0
- frame_security-1.0.0/frame/preprocessing/equality.py +340 -0
- frame_security-1.0.0/frame/sil/__init__.py +117 -0
- frame_security-1.0.0/frame/sil/analyzers/__init__.py +44 -0
- frame_security-1.0.0/frame/sil/analyzers/csharp_interprocedural_taint.py +912 -0
- frame_security-1.0.0/frame/sil/analyzers/function_summary.py +170 -0
- frame_security-1.0.0/frame/sil/analyzers/interprocedural_analyzer.py +4109 -0
- frame_security-1.0.0/frame/sil/analyzers/interprocedural_taint.py +889 -0
- frame_security-1.0.0/frame/sil/analyzers/memory_safety.py +309 -0
- frame_security-1.0.0/frame/sil/analyzers/path_sensitive_analyzer.py +861 -0
- frame_security-1.0.0/frame/sil/analyzers/semantic_patterns.py +658 -0
- frame_security-1.0.0/frame/sil/analyzers/sl_memory_analyzer.py +614 -0
- frame_security-1.0.0/frame/sil/analyzers/sl_semantic_analyzer.py +1429 -0
- frame_security-1.0.0/frame/sil/analyzers/ts_function_summarizer.py +818 -0
- frame_security-1.0.0/frame/sil/changes.py +45 -0
- frame_security-1.0.0/frame/sil/cli.py +662 -0
- frame_security-1.0.0/frame/sil/cwe_taxonomy.py +223 -0
- frame_security-1.0.0/frame/sil/fingerprints.py +266 -0
- frame_security-1.0.0/frame/sil/framework_evidence.py +36 -0
- frame_security-1.0.0/frame/sil/frontends/__init__.py +68 -0
- frame_security-1.0.0/frame/sil/frontends/_literal_fields.py +38 -0
- frame_security-1.0.0/frame/sil/frontends/_python_types.py +273 -0
- frame_security-1.0.0/frame/sil/frontends/c_frontend.py +2103 -0
- frame_security-1.0.0/frame/sil/frontends/csharp_frontend.py +2359 -0
- frame_security-1.0.0/frame/sil/frontends/java_frontend.py +3258 -0
- frame_security-1.0.0/frame/sil/frontends/javascript_frontend.py +3782 -0
- frame_security-1.0.0/frame/sil/frontends/python_frontend.py +2323 -0
- frame_security-1.0.0/frame/sil/hardening.py +128 -0
- frame_security-1.0.0/frame/sil/instructions.py +773 -0
- frame_security-1.0.0/frame/sil/llm_agent.py +233 -0
- frame_security-1.0.0/frame/sil/llm_client.py +337 -0
- frame_security-1.0.0/frame/sil/llm_detect.py +474 -0
- frame_security-1.0.0/frame/sil/llm_exploit.py +252 -0
- frame_security-1.0.0/frame/sil/llm_fix.py +150 -0
- frame_security-1.0.0/frame/sil/llm_triage.py +244 -0
- frame_security-1.0.0/frame/sil/loop_exit.py +70 -0
- frame_security-1.0.0/frame/sil/metadata.py +397 -0
- frame_security-1.0.0/frame/sil/packs/__init__.py +12 -0
- frame_security-1.0.0/frame/sil/packs/apply.py +386 -0
- frame_security-1.0.0/frame/sil/packs/cli.py +59 -0
- frame_security-1.0.0/frame/sil/packs/data/c/civetweb.toml +42 -0
- frame_security-1.0.0/frame/sil/packs/data/c/fastcgi.toml +34 -0
- frame_security-1.0.0/frame/sil/packs/data/c/libarchive.toml +22 -0
- frame_security-1.0.0/frame/sil/packs/data/c/libcurl.toml +23 -0
- frame_security-1.0.0/frame/sil/packs/data/c/libmicrohttpd.toml +46 -0
- frame_security-1.0.0/frame/sil/packs/data/c/libxml2.toml +25 -0
- frame_security-1.0.0/frame/sil/packs/data/c/mongoose.toml +39 -0
- frame_security-1.0.0/frame/sil/packs/data/c/openssl.toml +42 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/boost-asio-beast.toml +37 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/cpp-httplib.toml +54 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/crow.toml +37 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/grpc.toml +22 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/qt.toml +83 -0
- frame_security-1.0.0/frame/sil/packs/data/cpp/sql-clients.toml +43 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/aspnet-classic.toml +45 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/aspnetcore-minimal.toml +19 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/aspnetcore.toml +104 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/azure-functions.toml +29 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/dapper.toml +19 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/dotnet-system.toml +53 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/entity-framework.toml +12 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/entity-framework6.toml +11 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/grpc.toml +16 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/nhibernate.toml +10 -0
- frame_security-1.0.0/frame/sil/packs/data/csharp/wcf.toml +24 -0
- frame_security-1.0.0/frame/sil/packs/data/java/deserialization.toml +21 -0
- frame_security-1.0.0/frame/sil/packs/data/java/hibernate-jpa.toml +24 -0
- frame_security-1.0.0/frame/sil/packs/data/java/http-clients.toml +43 -0
- frame_security-1.0.0/frame/sil/packs/data/java/javalin.toml +26 -0
- frame_security-1.0.0/frame/sil/packs/data/java/jaxrs.toml +45 -0
- frame_security-1.0.0/frame/sil/packs/data/java/jdk-core.toml +14 -0
- frame_security-1.0.0/frame/sil/packs/data/java/jooq.toml +24 -0
- frame_security-1.0.0/frame/sil/packs/data/java/jsf.toml +47 -0
- frame_security-1.0.0/frame/sil/packs/data/java/micronaut.toml +38 -0
- frame_security-1.0.0/frame/sil/packs/data/java/play.toml +29 -0
- frame_security-1.0.0/frame/sil/packs/data/java/sparkjava.toml +32 -0
- frame_security-1.0.0/frame/sil/packs/data/java/spring.toml +98 -0
- frame_security-1.0.0/frame/sil/packs/data/java/struts2.toml +36 -0
- frame_security-1.0.0/frame/sil/packs/data/java/template-engines.toml +66 -0
- frame_security-1.0.0/frame/sil/packs/data/java/vertx-web.toml +61 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/angular.toml +32 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/aws-lambda.toml +16 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/electron.toml +39 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/fastify.toml +37 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/graphql.toml +16 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/hapi.toml +34 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/http-clients.toml +22 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/koa.toml +31 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/nextjs.toml +59 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/node-core.toml +53 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/react-dom.toml +20 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/redis.toml +11 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/restify.toml +11 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/sails.toml +15 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/sanitizers.toml +51 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/socketio.toml +13 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/sql-drivers.toml +38 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/template-engines.toml +18 -0
- frame_security-1.0.0/frame/sil/packs/data/javascript/typeorm.toml +22 -0
- frame_security-1.0.0/frame/sil/packs/data/python/aiohttp.toml +52 -0
- frame_security-1.0.0/frame/sil/packs/data/python/asyncpg.toml +19 -0
- frame_security-1.0.0/frame/sil/packs/data/python/bottle.toml +32 -0
- frame_security-1.0.0/frame/sil/packs/data/python/builtins.toml +15 -0
- frame_security-1.0.0/frame/sil/packs/data/python/cherrypy.toml +30 -0
- frame_security-1.0.0/frame/sil/packs/data/python/django-rest-framework.toml +30 -0
- frame_security-1.0.0/frame/sil/packs/data/python/django.toml +52 -0
- frame_security-1.0.0/frame/sil/packs/data/python/falcon.toml +27 -0
- frame_security-1.0.0/frame/sil/packs/data/python/fastapi.toml +56 -0
- frame_security-1.0.0/frame/sil/packs/data/python/flask-extensions.toml +28 -0
- frame_security-1.0.0/frame/sil/packs/data/python/http-clients.toml +32 -0
- frame_security-1.0.0/frame/sil/packs/data/python/process-execution.toml +53 -0
- frame_security-1.0.0/frame/sil/packs/data/python/pymongo.toml +30 -0
- frame_security-1.0.0/frame/sil/packs/data/python/pyramid.toml +43 -0
- frame_security-1.0.0/frame/sil/packs/data/python/sanic.toml +24 -0
- frame_security-1.0.0/frame/sil/packs/data/python/sql-libraries.toml +47 -0
- frame_security-1.0.0/frame/sil/packs/data/python/templates.toml +34 -0
- frame_security-1.0.0/frame/sil/packs/data/python/tornado.toml +31 -0
- frame_security-1.0.0/frame/sil/packs/loader.py +95 -0
- frame_security-1.0.0/frame/sil/packs/schema.py +262 -0
- frame_security-1.0.0/frame/sil/procedure.py +1009 -0
- frame_security-1.0.0/frame/sil/project.py +1453 -0
- frame_security-1.0.0/frame/sil/scanner.py +2605 -0
- frame_security-1.0.0/frame/sil/source_facts.py +47 -0
- frame_security-1.0.0/frame/sil/specs/__init__.py +57 -0
- frame_security-1.0.0/frame/sil/specs/c_specs.py +862 -0
- frame_security-1.0.0/frame/sil/specs/csharp_specs.py +825 -0
- frame_security-1.0.0/frame/sil/specs/java_specs.py +1130 -0
- frame_security-1.0.0/frame/sil/specs/javascript_specs.py +693 -0
- frame_security-1.0.0/frame/sil/specs/python_specs.py +1199 -0
- frame_security-1.0.0/frame/sil/suppressions.py +187 -0
- frame_security-1.0.0/frame/sil/templates.py +248 -0
- frame_security-1.0.0/frame/sil/translator.py +8003 -0
- frame_security-1.0.0/frame/sil/types.py +470 -0
- frame_security-1.0.0/frame/sil/verify.py +186 -0
- frame_security-1.0.0/frame/utils/__init__.py +12 -0
- frame_security-1.0.0/frame/utils/_normalization.py +341 -0
- frame_security-1.0.0/frame/utils/formula_utils.py +78 -0
- frame_security-1.0.0/frame/utils/frame_rule.py +398 -0
- frame_security-1.0.0/frame/utils/proof_state.py +168 -0
- frame_security-1.0.0/frame/utils/satisfiability.py +738 -0
- frame_security-1.0.0/frame_security.egg-info/PKG-INFO +157 -0
- frame_security-1.0.0/frame_security.egg-info/SOURCES.txt +384 -0
- frame_security-1.0.0/frame_security.egg-info/dependency_links.txt +1 -0
- frame_security-1.0.0/frame_security.egg-info/entry_points.txt +2 -0
- frame_security-1.0.0/frame_security.egg-info/requires.txt +30 -0
- frame_security-1.0.0/frame_security.egg-info/top_level.txt +1 -0
- frame_security-1.0.0/pyproject.toml +134 -0
- frame_security-1.0.0/setup.cfg +4 -0
- frame_security-1.0.0/tests/test_agent_compaction.py +101 -0
- frame_security-1.0.0/tests/test_arithmetic_check.py +337 -0
- frame_security-1.0.0/tests/test_arithmetic_lemmas.py +264 -0
- frame_security-1.0.0/tests/test_arithmetic_synth.py +337 -0
- frame_security-1.0.0/tests/test_array_regression.py +441 -0
- frame_security-1.0.0/tests/test_array_theory.py +254 -0
- frame_security-1.0.0/tests/test_base_computation.py +326 -0
- frame_security-1.0.0/tests/test_base_guided_folding.py +172 -0
- frame_security-1.0.0/tests/test_basic.py +139 -0
- frame_security-1.0.0/tests/test_benchmark_failures.py +301 -0
- frame_security-1.0.0/tests/test_benchmark_refactoring.py +319 -0
- frame_security-1.0.0/tests/test_biabduction.py +293 -0
- frame_security-1.0.0/tests/test_bitvector_advanced.py +220 -0
- frame_security-1.0.0/tests/test_bitvector_operations.py +302 -0
- frame_security-1.0.0/tests/test_bitvector_theory.py +355 -0
- frame_security-1.0.0/tests/test_c_buffer_bounds.py +212 -0
- frame_security-1.0.0/tests/test_c_control_flow_and_uninit.py +295 -0
- frame_security-1.0.0/tests/test_c_heap_lifecycle.py +159 -0
- frame_security-1.0.0/tests/test_c_null_path_facts.py +230 -0
- frame_security-1.0.0/tests/test_c_numeric_defects.py +207 -0
- frame_security-1.0.0/tests/test_c_ownership_lifetime.py +229 -0
- frame_security-1.0.0/tests/test_c_recall.py +253 -0
- frame_security-1.0.0/tests/test_call_sanitization_intersection.py +166 -0
- frame_security-1.0.0/tests/test_canonical_metadata.py +196 -0
- frame_security-1.0.0/tests/test_cli.py +309 -0
- frame_security-1.0.0/tests/test_cli_exploit.py +158 -0
- frame_security-1.0.0/tests/test_cli_frame_entrypoint_excludes.py +67 -0
- frame_security-1.0.0/tests/test_cli_no_default_excludes.py +59 -0
- frame_security-1.0.0/tests/test_cli_sarif_flags.py +52 -0
- frame_security-1.0.0/tests/test_compose.py +82 -0
- frame_security-1.0.0/tests/test_cross_file_taint.py +1059 -0
- frame_security-1.0.0/tests/test_cross_theory_integration.py +397 -0
- frame_security-1.0.0/tests/test_cwe134_format_string.py +203 -0
- frame_security-1.0.0/tests/test_cwe190_detection.py +162 -0
- frame_security-1.0.0/tests/test_cwe321.py +163 -0
- frame_security-1.0.0/tests/test_cwe369_divide_by_zero.py +187 -0
- frame_security-1.0.0/tests/test_cwe476_detection.py +192 -0
- frame_security-1.0.0/tests/test_cwe78_detection.py +158 -0
- frame_security-1.0.0/tests/test_cwe_122_124.py +115 -0
- frame_security-1.0.0/tests/test_cwe_126_127.py +161 -0
- frame_security-1.0.0/tests/test_cwe_taxonomy.py +212 -0
- frame_security-1.0.0/tests/test_cyclic_proof_improvements.py +339 -0
- frame_security-1.0.0/tests/test_edge_cases.py +167 -0
- frame_security-1.0.0/tests/test_encoder_checker.py +398 -0
- frame_security-1.0.0/tests/test_endor_corpus.py +502 -0
- frame_security-1.0.0/tests/test_equality_preprocessing_core.py +344 -0
- frame_security-1.0.0/tests/test_equality_preprocessing_integration.py +173 -0
- frame_security-1.0.0/tests/test_feasibility_guard_polarity.py +112 -0
- frame_security-1.0.0/tests/test_fix_batch_verify.py +47 -0
- frame_security-1.0.0/tests/test_fold_proposals.py +138 -0
- frame_security-1.0.0/tests/test_folding_analysis.py +286 -0
- frame_security-1.0.0/tests/test_folding_blind.py +301 -0
- frame_security-1.0.0/tests/test_folding_utils.py +220 -0
- frame_security-1.0.0/tests/test_footprint_core.py +314 -0
- frame_security-1.0.0/tests/test_footprint_integration.py +273 -0
- frame_security-1.0.0/tests/test_frame_abduction_integration.py +161 -0
- frame_security-1.0.0/tests/test_frame_extraction_abduction.py +364 -0
- frame_security-1.0.0/tests/test_frame_rule.py +79 -0
- frame_security-1.0.0/tests/test_frame_rule_completeness.py +38 -0
- frame_security-1.0.0/tests/test_framework.py +89 -0
- frame_security-1.0.0/tests/test_generated_source.py +96 -0
- frame_security-1.0.0/tests/test_hardening.py +78 -0
- frame_security-1.0.0/tests/test_heap_graph.py +243 -0
- frame_security-1.0.0/tests/test_heap_graph_analysis.py +453 -0
- frame_security-1.0.0/tests/test_heap_graph_simple.py +214 -0
- frame_security-1.0.0/tests/test_heap_lifecycle.py +375 -0
- frame_security-1.0.0/tests/test_incorrectness_bugs.py +290 -0
- frame_security-1.0.0/tests/test_incorrectness_integration.py +241 -0
- frame_security-1.0.0/tests/test_incremental_scan.py +393 -0
- frame_security-1.0.0/tests/test_interprocedural_taint.py +300 -0
- frame_security-1.0.0/tests/test_java_cross_file.py +186 -0
- frame_security-1.0.0/tests/test_java_declared_types.py +344 -0
- frame_security-1.0.0/tests/test_java_frontend_lowering.py +110 -0
- frame_security-1.0.0/tests/test_join_path_conditions.py +133 -0
- frame_security-1.0.0/tests/test_js_framework_frontend.py +73 -0
- frame_security-1.0.0/tests/test_js_recall.py +419 -0
- frame_security-1.0.0/tests/test_js_recursion_precision.py +30 -0
- frame_security-1.0.0/tests/test_language_frontends.py +1857 -0
- frame_security-1.0.0/tests/test_lemma_matcher_core.py +310 -0
- frame_security-1.0.0/tests/test_lemma_matcher_integration.py +258 -0
- frame_security-1.0.0/tests/test_lemma_substitution_core.py +326 -0
- frame_security-1.0.0/tests/test_lemma_substitution_integration.py +228 -0
- frame_security-1.0.0/tests/test_lists.py +128 -0
- frame_security-1.0.0/tests/test_llm_client.py +44 -0
- frame_security-1.0.0/tests/test_llm_detect.py +114 -0
- frame_security-1.0.0/tests/test_llm_exploit.py +202 -0
- frame_security-1.0.0/tests/test_llm_fix.py +119 -0
- frame_security-1.0.0/tests/test_llm_integration.py +146 -0
- frame_security-1.0.0/tests/test_llm_triage.py +195 -0
- frame_security-1.0.0/tests/test_ls_composition_sat.py +124 -0
- frame_security-1.0.0/tests/test_ls_heuristics.py +513 -0
- frame_security-1.0.0/tests/test_memory_safety_cwes.py +497 -0
- frame_security-1.0.0/tests/test_negative.py +97 -0
- frame_security-1.0.0/tests/test_overlapping_segments.py +251 -0
- frame_security-1.0.0/tests/test_overloaded_procedures.py +291 -0
- frame_security-1.0.0/tests/test_packaging.py +44 -0
- frame_security-1.0.0/tests/test_parsed_predicates.py +350 -0
- frame_security-1.0.0/tests/test_parser_operators.py +23 -0
- frame_security-1.0.0/tests/test_parser_regressions.py +329 -0
- frame_security-1.0.0/tests/test_path_feasibility.py +132 -0
- frame_security-1.0.0/tests/test_predicate_matching.py +358 -0
- frame_security-1.0.0/tests/test_predicates.py +174 -0
- frame_security-1.0.0/tests/test_pure_reasoning.py +115 -0
- frame_security-1.0.0/tests/test_python_recall.py +248 -0
- frame_security-1.0.0/tests/test_regex_parser.py +319 -0
- frame_security-1.0.0/tests/test_repo_root_wiring.py +85 -0
- frame_security-1.0.0/tests/test_repo_scale_detect.py +300 -0
- frame_security-1.0.0/tests/test_resource_exhaustion.py +475 -0
- frame_security-1.0.0/tests/test_s2s_normalization.py +291 -0
- frame_security-1.0.0/tests/test_sat_regressions.py +267 -0
- frame_security-1.0.0/tests/test_scan_directory_excludes.py +234 -0
- frame_security-1.0.0/tests/test_scan_reporting.py +166 -0
- frame_security-1.0.0/tests/test_secret_value_shape.py +314 -0
- frame_security-1.0.0/tests/test_sil_scanner.py +514 -0
- frame_security-1.0.0/tests/test_sink_kind_resolution.py +72 -0
- frame_security-1.0.0/tests/test_sink_receiver_precision.py +481 -0
- frame_security-1.0.0/tests/test_skiplist_predicates.py +188 -0
- frame_security-1.0.0/tests/test_slcomp_bsl_sat.py +104 -0
- frame_security-1.0.0/tests/test_slcomp_qf_bsl_sat.py +204 -0
- frame_security-1.0.0/tests/test_slcomp_qf_bsllia_sat.py +123 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shid_entl.py +211 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shid_sat.py +186 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shidlia_entl.py +288 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shidlia_sat.py +119 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shlid_entl.py +221 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shls_entl.py +208 -0
- frame_security-1.0.0/tests/test_slcomp_qf_shls_sat.py +115 -0
- frame_security-1.0.0/tests/test_slcomp_shid_entl.py +124 -0
- frame_security-1.0.0/tests/test_slcomp_shidlia_entl.py +122 -0
- frame_security-1.0.0/tests/test_soundness_regressions.py +57 -0
- frame_security-1.0.0/tests/test_spatial_basic.py +144 -0
- frame_security-1.0.0/tests/test_specialized_predicates.py +241 -0
- frame_security-1.0.0/tests/test_string_ast.py +389 -0
- frame_security-1.0.0/tests/test_string_encoding.py +301 -0
- frame_security-1.0.0/tests/test_string_parser.py +373 -0
- frame_security-1.0.0/tests/test_suppressions_config.py +208 -0
- frame_security-1.0.0/tests/test_template_aware_render.py +116 -0
- frame_security-1.0.0/tests/test_trees.py +116 -0
- frame_security-1.0.0/tests/test_unchecked_return.py +290 -0
- frame_security-1.0.0/tests/test_unification.py +384 -0
- frame_security-1.0.0/tests/test_vulnerability_injection.py +300 -0
- frame_security-1.0.0/tests/test_vulnerability_taint.py +281 -0
- frame_security-1.0.0/tests/test_wand.py +244 -0
- frame_security-1.0.0/tests/test_wand_sat_encoding.py +260 -0
- frame_security-1.0.0/tests/test_weak_hash_usedforsecurity.py +46 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: frame-security
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Sound static analysis and LLM reasoning, in one security agent
|
|
5
|
+
Author: codelion
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/lambdasec/frame
|
|
8
|
+
Project-URL: Documentation, https://github.com/lambdasec/frame/blob/main/docs/usage.md
|
|
9
|
+
Project-URL: Changelog, https://github.com/lambdasec/frame/releases
|
|
10
|
+
Project-URL: Repository, https://github.com/lambdasec/frame
|
|
11
|
+
Project-URL: Issues, https://github.com/lambdasec/frame/issues
|
|
12
|
+
Keywords: separation-logic,formal-verification,security,static-analysis,vulnerability-detection,smt,z3
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering
|
|
25
|
+
Classifier: Topic :: Security
|
|
26
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
27
|
+
Classifier: Topic :: Software Development :: Testing
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: z3-solver>=4.8.0
|
|
32
|
+
Requires-Dist: tomli>=2.0.0; python_version < "3.11"
|
|
33
|
+
Provides-Extra: scan
|
|
34
|
+
Requires-Dist: tree-sitter>=0.21.0; extra == "scan"
|
|
35
|
+
Requires-Dist: tree-sitter-python>=0.21.0; extra == "scan"
|
|
36
|
+
Requires-Dist: tree-sitter-c>=0.21.0; extra == "scan"
|
|
37
|
+
Requires-Dist: tree-sitter-cpp>=0.22.0; extra == "scan"
|
|
38
|
+
Requires-Dist: tree-sitter-java>=0.21.0; extra == "scan"
|
|
39
|
+
Requires-Dist: tree-sitter-javascript>=0.21.0; extra == "scan"
|
|
40
|
+
Requires-Dist: tree-sitter-typescript>=0.21.0; extra == "scan"
|
|
41
|
+
Requires-Dist: tree-sitter-c-sharp>=0.21.0; extra == "scan"
|
|
42
|
+
Provides-Extra: benchmarks
|
|
43
|
+
Requires-Dist: requests>=2.25.0; extra == "benchmarks"
|
|
44
|
+
Requires-Dist: zstandard>=0.22.0; extra == "benchmarks"
|
|
45
|
+
Requires-Dist: pyyaml>=6.0; extra == "benchmarks"
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: frame-security[benchmarks,scan]; extra == "dev"
|
|
48
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
50
|
+
Requires-Dist: pytest-xdist>=3.0.0; extra == "dev"
|
|
51
|
+
Requires-Dist: ruff>=0.5.0; extra == "dev"
|
|
52
|
+
Requires-Dist: mypy>=1.5.0; extra == "dev"
|
|
53
|
+
Provides-Extra: all
|
|
54
|
+
Requires-Dist: frame-security[benchmarks,dev,scan]; extra == "all"
|
|
55
|
+
Dynamic: license-file
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/logo.svg" alt="Frame" width="400">
|
|
59
|
+
<p align="center">
|
|
60
|
+
<strong>Sound static analysis and LLM reasoning, in one security agent</strong>
|
|
61
|
+
</p>
|
|
62
|
+
<p align="center">
|
|
63
|
+
<a href="https://github.com/lambdasec/frame/actions/workflows/tests.yml"><img src="https://github.com/lambdasec/frame/actions/workflows/tests.yml/badge.svg?branch=main" alt="Tests"></a>
|
|
64
|
+
<a href="https://pypi.org/project/frame-security/"><img src="https://img.shields.io/pypi/v/frame-security" alt="PyPI"></a>
|
|
65
|
+
<a href="https://pepy.tech/project/frame-security"><img src="https://static.pepy.tech/badge/frame-security/month" alt="Downloads"></a>
|
|
66
|
+
<a href="https://pypi.org/project/frame-security/"><img src="https://img.shields.io/pypi/pyversions/frame-security" alt="Python"></a>
|
|
67
|
+
<a href="https://github.com/lambdasec/frame/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License"></a>
|
|
68
|
+
</p>
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
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.
|
|
72
|
+
|
|
73
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-ai-sast.svg" alt="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" width="760"></p>
|
|
74
|
+
|
|
75
|
+
## Why Frame?
|
|
76
|
+
|
|
77
|
+
- **Five languages**: Python, JavaScript/TypeScript, Java, C# and C/C++.
|
|
78
|
+
- **Cross-file by default**: a request that enters a controller and reaches a query three files away is one finding.
|
|
79
|
+
- **70+ framework packs**: Flask to Spring to ASP.NET to Express, plus your own stack in one TOML file.
|
|
80
|
+
- **Built for guardrails**: scan only what changed, baseline what you accept, verify that a fix removed the bug.
|
|
81
|
+
- **Its own separation logic engine** on Z3: entailment, frame inference, bi-abduction and countermodels.
|
|
82
|
+
- **Runs on open models**, local or hosted, for detection, triage, exploitation and fixing.
|
|
83
|
+
|
|
84
|
+
## Quick start
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pip install "frame-security[scan]"
|
|
88
|
+
frame scan src/
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
A three-file Flask app, where the request enters in `app.py` and the query runs in `services/orders.py`:
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
# shop/app.py
|
|
95
|
+
@app.route("/orders")
|
|
96
|
+
def list_orders():
|
|
97
|
+
customer = request.args.get("customer", "")
|
|
98
|
+
return jsonify(orders.for_customer(customer))
|
|
99
|
+
|
|
100
|
+
# shop/services/orders.py
|
|
101
|
+
def for_customer(name):
|
|
102
|
+
cur.execute("SELECT * FROM orders WHERE customer = '" + name.strip() + "'")
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
```console
|
|
106
|
+
$ frame scan benchmarks/exemplars/quickstart --root benchmarks/exemplars/quickstart
|
|
107
|
+
1. [CRITICAL] 🔴 sql_injection
|
|
108
|
+
Location: benchmarks/exemplars/quickstart/shop/services/orders.py:8:4
|
|
109
|
+
Description: Tainted data from 'customer' flows to sql sink
|
|
110
|
+
CWE: CWE-89
|
|
111
|
+
Data flow: shop/app.py:11 -> shop/services/orders.py::for_customer(name)
|
|
112
|
+
...
|
|
113
|
+
Scanned 4 files: 2 findings (2 critical)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Use a placeholder query, or wrap the value in `int()`, and the finding goes away.
|
|
117
|
+
|
|
118
|
+
## Benchmarks
|
|
119
|
+
|
|
120
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-owasp.svg" alt="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" width="760"></p>
|
|
121
|
+
|
|
122
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-cross-file.svg" alt="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" width="760"></p>
|
|
123
|
+
|
|
124
|
+
| Benchmark | What it measures | Frame | Comparison |
|
|
125
|
+
|-----------|------------------|-------|------------|
|
|
126
|
+
| [XBOW / ZeroPath](https://github.com/lambdasec/frame/blob/main/benchmarks/xbow_zeropath/REPORT.md) | AI-SAST on 39 web-vuln apps | detect **78.8%**, FP **26.3%** | ZeroPath 80% / 25%, Semgrep 54% / 45% |
|
|
127
|
+
| [Endor Labs corpus](https://github.com/lambdasec/frame/blob/main/benchmarks/endor_corpus/README.md) | 193 vulns in 5 production apps | recall **0.67**, precision **0.51** | Semgrep 0.52 / 0.40 |
|
|
128
|
+
| [RealVuln IDOR/BOLA](https://github.com/lambdasec/frame/blob/main/benchmarks/realvuln_authz/REPORT.md) | Broken authorization, 4 real apps | **6/8** found, precision **1.00** | 0 false positives on safe controls |
|
|
129
|
+
| [CVE-Bench](https://github.com/lambdasec/frame/blob/main/benchmarks/cve_bench/README.md) | Detect, exploit, fix on 10 live CVEs | **5 / 4 / 4** of 10 | each stage verified on a live target |
|
|
130
|
+
| [SusVibes](https://github.com/lambdasec/frame/blob/main/benchmarks/susvibes/README.md) | 181 real-CVE Python pairs | recall **0.14**, precision **0.56** | Semgrep 0.06 / 0.55 |
|
|
131
|
+
| [Cross-file exemplars](https://github.com/lambdasec/frame/blob/main/benchmarks/exemplars/README.md) | Hand-labelled precision on 4 real apps | **98%** | CodeQL 95% |
|
|
132
|
+
|
|
133
|
+
Methods and every suite, including SL-COMP for the engine, are in [benchmarks/README.md](https://github.com/lambdasec/frame/blob/main/benchmarks/README.md).
|
|
134
|
+
|
|
135
|
+
## Documentation
|
|
136
|
+
|
|
137
|
+
| | |
|
|
138
|
+
|---|---|
|
|
139
|
+
| [Usage](https://github.com/lambdasec/frame/blob/main/docs/usage.md) | Scanning, GitHub Action and pre-commit hook, baselines and `verify`, suppressions, configuration, commands, Python API |
|
|
140
|
+
| [Coverage](https://github.com/lambdasec/frame/blob/main/docs/coverage.md) | Cross-file resolution per language, supported frameworks, writing a pack, vulnerability classes |
|
|
141
|
+
| [AI layer](https://github.com/lambdasec/frame/blob/main/docs/ai.md) | Detect, triage, exploit and fix with any OpenAI-compatible model, including on-device |
|
|
142
|
+
| [Separation logic engine](https://github.com/lambdasec/frame/blob/main/docs/engine.md) | The prover under the scanner: capabilities, syntax, CLI, Python API, SL-COMP results |
|
|
143
|
+
| [Examples](https://github.com/lambdasec/frame/blob/main/benchmarks/exemplars/README.md) | The quickstart app, a vulnerable and safe app per framework, and the cross-file comparison |
|
|
144
|
+
|
|
145
|
+
## Contributing
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
pip install -e ".[dev]"
|
|
149
|
+
python -m pytest tests/ -n auto
|
|
150
|
+
ruff check frame tests benchmarks
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
`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.
|
|
154
|
+
|
|
155
|
+
## License
|
|
156
|
+
|
|
157
|
+
[Apache 2.0](https://github.com/lambdasec/frame/blob/main/LICENSE)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/logo.svg" alt="Frame" width="400">
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Sound static analysis and LLM reasoning, in one security agent</strong>
|
|
5
|
+
</p>
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://github.com/lambdasec/frame/actions/workflows/tests.yml"><img src="https://github.com/lambdasec/frame/actions/workflows/tests.yml/badge.svg?branch=main" alt="Tests"></a>
|
|
8
|
+
<a href="https://pypi.org/project/frame-security/"><img src="https://img.shields.io/pypi/v/frame-security" alt="PyPI"></a>
|
|
9
|
+
<a href="https://pepy.tech/project/frame-security"><img src="https://static.pepy.tech/badge/frame-security/month" alt="Downloads"></a>
|
|
10
|
+
<a href="https://pypi.org/project/frame-security/"><img src="https://img.shields.io/pypi/pyversions/frame-security" alt="Python"></a>
|
|
11
|
+
<a href="https://github.com/lambdasec/frame/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License"></a>
|
|
12
|
+
</p>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-ai-sast.svg" alt="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" width="760"></p>
|
|
18
|
+
|
|
19
|
+
## Why Frame?
|
|
20
|
+
|
|
21
|
+
- **Five languages**: Python, JavaScript/TypeScript, Java, C# and C/C++.
|
|
22
|
+
- **Cross-file by default**: a request that enters a controller and reaches a query three files away is one finding.
|
|
23
|
+
- **70+ framework packs**: Flask to Spring to ASP.NET to Express, plus your own stack in one TOML file.
|
|
24
|
+
- **Built for guardrails**: scan only what changed, baseline what you accept, verify that a fix removed the bug.
|
|
25
|
+
- **Its own separation logic engine** on Z3: entailment, frame inference, bi-abduction and countermodels.
|
|
26
|
+
- **Runs on open models**, local or hosted, for detection, triage, exploitation and fixing.
|
|
27
|
+
|
|
28
|
+
## Quick start
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install "frame-security[scan]"
|
|
32
|
+
frame scan src/
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
A three-file Flask app, where the request enters in `app.py` and the query runs in `services/orders.py`:
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
# shop/app.py
|
|
39
|
+
@app.route("/orders")
|
|
40
|
+
def list_orders():
|
|
41
|
+
customer = request.args.get("customer", "")
|
|
42
|
+
return jsonify(orders.for_customer(customer))
|
|
43
|
+
|
|
44
|
+
# shop/services/orders.py
|
|
45
|
+
def for_customer(name):
|
|
46
|
+
cur.execute("SELECT * FROM orders WHERE customer = '" + name.strip() + "'")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```console
|
|
50
|
+
$ frame scan benchmarks/exemplars/quickstart --root benchmarks/exemplars/quickstart
|
|
51
|
+
1. [CRITICAL] 🔴 sql_injection
|
|
52
|
+
Location: benchmarks/exemplars/quickstart/shop/services/orders.py:8:4
|
|
53
|
+
Description: Tainted data from 'customer' flows to sql sink
|
|
54
|
+
CWE: CWE-89
|
|
55
|
+
Data flow: shop/app.py:11 -> shop/services/orders.py::for_customer(name)
|
|
56
|
+
...
|
|
57
|
+
Scanned 4 files: 2 findings (2 critical)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Use a placeholder query, or wrap the value in `int()`, and the finding goes away.
|
|
61
|
+
|
|
62
|
+
## Benchmarks
|
|
63
|
+
|
|
64
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-owasp.svg" alt="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" width="760"></p>
|
|
65
|
+
|
|
66
|
+
<p align="center"><img src="https://raw.githubusercontent.com/lambdasec/frame/main/assets/chart-cross-file.svg" alt="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" width="760"></p>
|
|
67
|
+
|
|
68
|
+
| Benchmark | What it measures | Frame | Comparison |
|
|
69
|
+
|-----------|------------------|-------|------------|
|
|
70
|
+
| [XBOW / ZeroPath](https://github.com/lambdasec/frame/blob/main/benchmarks/xbow_zeropath/REPORT.md) | AI-SAST on 39 web-vuln apps | detect **78.8%**, FP **26.3%** | ZeroPath 80% / 25%, Semgrep 54% / 45% |
|
|
71
|
+
| [Endor Labs corpus](https://github.com/lambdasec/frame/blob/main/benchmarks/endor_corpus/README.md) | 193 vulns in 5 production apps | recall **0.67**, precision **0.51** | Semgrep 0.52 / 0.40 |
|
|
72
|
+
| [RealVuln IDOR/BOLA](https://github.com/lambdasec/frame/blob/main/benchmarks/realvuln_authz/REPORT.md) | Broken authorization, 4 real apps | **6/8** found, precision **1.00** | 0 false positives on safe controls |
|
|
73
|
+
| [CVE-Bench](https://github.com/lambdasec/frame/blob/main/benchmarks/cve_bench/README.md) | Detect, exploit, fix on 10 live CVEs | **5 / 4 / 4** of 10 | each stage verified on a live target |
|
|
74
|
+
| [SusVibes](https://github.com/lambdasec/frame/blob/main/benchmarks/susvibes/README.md) | 181 real-CVE Python pairs | recall **0.14**, precision **0.56** | Semgrep 0.06 / 0.55 |
|
|
75
|
+
| [Cross-file exemplars](https://github.com/lambdasec/frame/blob/main/benchmarks/exemplars/README.md) | Hand-labelled precision on 4 real apps | **98%** | CodeQL 95% |
|
|
76
|
+
|
|
77
|
+
Methods and every suite, including SL-COMP for the engine, are in [benchmarks/README.md](https://github.com/lambdasec/frame/blob/main/benchmarks/README.md).
|
|
78
|
+
|
|
79
|
+
## Documentation
|
|
80
|
+
|
|
81
|
+
| | |
|
|
82
|
+
|---|---|
|
|
83
|
+
| [Usage](https://github.com/lambdasec/frame/blob/main/docs/usage.md) | Scanning, GitHub Action and pre-commit hook, baselines and `verify`, suppressions, configuration, commands, Python API |
|
|
84
|
+
| [Coverage](https://github.com/lambdasec/frame/blob/main/docs/coverage.md) | Cross-file resolution per language, supported frameworks, writing a pack, vulnerability classes |
|
|
85
|
+
| [AI layer](https://github.com/lambdasec/frame/blob/main/docs/ai.md) | Detect, triage, exploit and fix with any OpenAI-compatible model, including on-device |
|
|
86
|
+
| [Separation logic engine](https://github.com/lambdasec/frame/blob/main/docs/engine.md) | The prover under the scanner: capabilities, syntax, CLI, Python API, SL-COMP results |
|
|
87
|
+
| [Examples](https://github.com/lambdasec/frame/blob/main/benchmarks/exemplars/README.md) | The quickstart app, a vulnerable and safe app per framework, and the cross-file comparison |
|
|
88
|
+
|
|
89
|
+
## Contributing
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pip install -e ".[dev]"
|
|
93
|
+
python -m pytest tests/ -n auto
|
|
94
|
+
ruff check frame tests benchmarks
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
`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.
|
|
98
|
+
|
|
99
|
+
## License
|
|
100
|
+
|
|
101
|
+
[Apache 2.0](https://github.com/lambdasec/frame/blob/main/LICENSE)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Separation Logic Entailment Checker using Z3
|
|
3
|
+
|
|
4
|
+
A Python library for checking entailments in separation logic,
|
|
5
|
+
supporting basic assertions and inductive predicates for data structures.
|
|
6
|
+
|
|
7
|
+
The library is organized into logical modules:
|
|
8
|
+
- core: AST and parser
|
|
9
|
+
- encoding: Z3 SMT encoding
|
|
10
|
+
- checking: Entailment checking and heuristics
|
|
11
|
+
- analysis: Formula analysis and reasoning
|
|
12
|
+
- heap: Heap graph and pattern detection
|
|
13
|
+
- folding: Predicate folding/unfolding
|
|
14
|
+
- arithmetic: Arithmetic reasoning
|
|
15
|
+
- preprocessing: Formula preprocessing
|
|
16
|
+
- predicates: Inductive predicate definitions
|
|
17
|
+
- lemmas: Lemma library
|
|
18
|
+
- utils: Utilities and proof management
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
# Core abstractions
|
|
22
|
+
from frame.core.ast import (
|
|
23
|
+
Formula, Emp, PointsTo, SepConj, Wand, And, Or, Not, Eq, Neq,
|
|
24
|
+
Lt, Le, Gt, Ge, True_, False_, Exists, Forall, Var, Const, PredicateCall,
|
|
25
|
+
# String expressions
|
|
26
|
+
StrLiteral, StrConcat, StrLen, StrSubstr, StrContains, StrMatches,
|
|
27
|
+
# Security and taint tracking
|
|
28
|
+
Taint, Sanitized, Source, Sink,
|
|
29
|
+
# Error states for incorrectness logic
|
|
30
|
+
Error, NullDeref, UseAfterFree, BufferOverflow
|
|
31
|
+
)
|
|
32
|
+
from frame.core.parser import parse, parse_entailment
|
|
33
|
+
|
|
34
|
+
# Main checker
|
|
35
|
+
from frame.checking.checker import EntailmentChecker
|
|
36
|
+
|
|
37
|
+
# Predicates
|
|
38
|
+
from frame.predicates import (
|
|
39
|
+
PredicateRegistry, InductivePredicate, PredicateValidationError,
|
|
40
|
+
ListSegment, Tree, GenericPredicate
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
__version__ = "1.0.0"
|
|
44
|
+
__all__ = [
|
|
45
|
+
# Core formulas and expressions
|
|
46
|
+
"Formula", "Emp", "PointsTo", "SepConj", "Wand", "And", "Or", "Not",
|
|
47
|
+
"Eq", "Neq", "Lt", "Le", "Gt", "Ge", "True_", "False_", "Exists", "Forall", "Var", "Const",
|
|
48
|
+
"PredicateCall",
|
|
49
|
+
# String expressions
|
|
50
|
+
"StrLiteral", "StrConcat", "StrLen", "StrSubstr", "StrContains", "StrMatches",
|
|
51
|
+
# Security and taint
|
|
52
|
+
"Taint", "Sanitized", "Source", "Sink",
|
|
53
|
+
# Error states
|
|
54
|
+
"Error", "NullDeref", "UseAfterFree", "BufferOverflow",
|
|
55
|
+
# Checker and predicates
|
|
56
|
+
"EntailmentChecker", "PredicateRegistry",
|
|
57
|
+
"InductivePredicate", "PredicateValidationError",
|
|
58
|
+
"ListSegment", "Tree", "GenericPredicate",
|
|
59
|
+
# Parser
|
|
60
|
+
"parse", "parse_entailment"
|
|
61
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Frame CLI entry point for `python -m frame`.
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
python -m frame scan app.py
|
|
7
|
+
python -m frame solve "x |-> 5 |- x |-> 5"
|
|
8
|
+
python -m frame check entailments.txt
|
|
9
|
+
python -m frame parse "x |-> 5 * y |-> 3"
|
|
10
|
+
python -m frame repl
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import sys
|
|
14
|
+
from frame.cli import main
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
sys.exit(main())
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Formula analysis and reasoning utilities.
|
|
3
|
+
|
|
4
|
+
This module provides various analysis capabilities:
|
|
5
|
+
- Formula structure analysis
|
|
6
|
+
- Unification algorithm
|
|
7
|
+
- Predicate pattern matching
|
|
8
|
+
- Footprint analysis
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from frame.analysis.formula import FormulaAnalyzer
|
|
12
|
+
from frame.analysis.unification import Unifier
|
|
13
|
+
from frame.analysis.predicate_matching import PredicateMatcher
|
|
14
|
+
from frame.analysis.footprint import FootprintAnalyzer
|