codeaudit 1.9.3__tar.gz → 1.9.6__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.
- codeaudit-1.9.6/.github/workflows/publish-release.yml +57 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/.gitignore +2 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/CHANGELOG.md +46 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/PKG-INFO +3 -3
- {codeaudit-1.9.3 → codeaudit-1.9.6}/README.md +1 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/_toc.yml +3 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/about.md +9 -0
- codeaudit-1.9.6/docs/benchmarksuite.ipynb +2788 -0
- codeaudit-1.9.6/docs/checks/ctypes_check.md +33 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/codeauditcommands.md +1 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/codeauditchecks.html +84 -48
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/demoscan.json +2 -2
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/intro.md +1 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/markingissues.md +1 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/pyproject.toml +1 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/__about__.py +1 -1
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/api_interfaces.py +62 -46
- codeaudit-1.9.6/src/codeaudit/benchmark_helpfunctions.py +325 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/data/sastchecks.csv +6 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/filehelpfunctions.py +27 -6
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/pypi_package_scan.py +15 -18
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/reporting.py +25 -8
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/suppression.py +2 -28
- codeaudit-1.9.6/tests/benchmarkfiles/README.md +24 -0
- codeaudit-1.9.6/tests/benchmarkfiles/invalidpython/ddos_blockingCPython_example.py +32 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/assert.py +51 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/assert_check.py +66 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/base64.py +36 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/binding.py +30 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/bz2.py +36 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/compile.py +18 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/ctypes_example.py +119 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/ddos_blockingCPython_example2.py +29 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/ddos_blockingCPython_example3.py +40 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/eval_example.py +32 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/exceptionhandling.py +99 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/exec_example.py +29 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/fileoperations.py +123 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/filepermissions.py +89 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/forkbomb_example.py +24 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/ftp.py +95 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/getattr_example.py +18 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/homoglyphs_example.py +19 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/httpserver.py +69 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/import_example.py +41 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/input_example.py +19 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/log4shell_pattern.py +333 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/logging.py +102 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/lzma_example.py +69 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/lzma_open.py +80 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/marshal.py +74 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/multiprocessing.py +70 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/obfuscation_example.py +19 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/obfuscation_example2.py +22 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/obfuscation_example3.py +22 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/os_examples.py +38 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/os_execution.py +119 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/os_pseudo_fork.py +82 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/osforking.py +62 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/pickle_example.py +78 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/random.py +51 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/sha_examples.py +26 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/shelve.py +82 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/shutil_example.py +90 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/subprocess.py +112 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/syscalls.py +105 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/tarfile_example.py +110 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/tempfile_example.py +85 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/vulnerable_parse.py +49 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/xmlrpc.py +39 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/zipfile_example.py +89 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/zipfile_example2.py +76 -0
- codeaudit-1.9.6/tests/benchmarkfiles/validpython/zstd.py +63 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/suppression/sastsuppression_0.py +4 -0
- codeaudit-1.9.6/tests/test_benchmark.py +91 -0
- codeaudit-1.9.6/tests/test_ctypes_detection.py +54 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_suppressionlogic.py +1 -0
- codeaudit-1.9.6/tests/unit_tests/test_weakness_count_per_file.py +167 -0
- codeaudit-1.9.6/tests/validationfiles/ctypes_example.py +119 -0
- codeaudit-1.9.6/tests/validationfiles/ctypes_example2.py +12 -0
- codeaudit-1.9.3/cov_html/.gitignore +0 -2
- codeaudit-1.9.3/cov_html/class_index.html +0 -321
- codeaudit-1.9.3/cov_html/coverage_html_cb_dd2e7eb5.js +0 -735
- codeaudit-1.9.3/cov_html/favicon_32_cb_c827f16f.png +0 -0
- codeaudit-1.9.3/cov_html/function_index.html +0 -1571
- codeaudit-1.9.3/cov_html/index.html +0 -288
- codeaudit-1.9.3/cov_html/keybd_closed_cb_900cfef5.png +0 -0
- codeaudit-1.9.3/cov_html/status.json +0 -1
- codeaudit-1.9.3/cov_html/style_cb_9ff733b0.css +0 -389
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8___about___py.html +0 -101
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8___init___py.html +0 -101
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_altairplots_py.html +0 -1098
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_api_helpers_py.html +0 -382
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_api_interfaces_py.html +0 -704
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_api_reporting_py.html +0 -141
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_checkmodules_py.html +0 -250
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_codeaudit_dashboard_py.html +0 -436
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_codeaudit_py.html +0 -200
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_complexitycheck_py.html +0 -217
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_dashboard_reports_py.html +0 -510
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_filehelpfunctions_py.html +0 -233
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_htmlhelpfunctions_py.html +0 -195
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_issuevalidations_py.html +0 -239
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_privacy_lint_py.html +0 -454
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_pypi_package_scan_py.html +0 -211
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_reporting_py.html +0 -1103
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_security_checks_py.html +0 -155
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_suppression_py.html +0 -335
- codeaudit-1.9.3/cov_html/z_15dab3f49bf85fa8_totals_py.html +0 -278
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_171.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_171.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_190.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_190.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_191.html +0 -299
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_191.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_192.html +0 -299
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_fixedTMPfor_v1.9.0.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_version162.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_version162.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_version166.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/dashboardapp_version166.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_171.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_171.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_180.html +0 -295
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_180.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_191.html +0 -299
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_191.js +0 -91
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_192.html +0 -299
- codeaudit-1.9.3/src/dashboard/pyodide/deployed/dashboardapp_fixedTMPfor_v1.9.0.js +0 -91
- codeaudit-1.9.3/src/dashboard/requirements.txt +0 -3
- {codeaudit-1.9.3 → codeaudit-1.9.6}/.github/workflows/python-test.yml +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/.github/workflows/sast_validation.yml +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/CONTRIBUTE.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/LICENSE.txt +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/SECURITY.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/CLIcommands.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/CONTRIBUTE.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/_config.yml +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/_static/nocxstyle.css +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/apidocs/api_intro.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/apidocs/codeaudit.rst +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/apidocs/modules.rst +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/architecture.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/changelog.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/assert_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/base64_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/binding_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/builtinfunctions_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/chmod_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/directorycreation_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/dynamicimport_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/exception_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/ftp_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/hash_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/httpserver_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/input_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/loggingconf_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/marshal_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/mktemp_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/multiprocessing_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/pickle_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/random_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/shelve_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/shutil_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/subprocess_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/syscalls_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/systemcalls_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/tarfile_extract_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/xml_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checks/zipfile_check.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/checksinformation.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/cimode.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/codeauditchecks.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/codeauditoverview.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/complexitycheck.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/data_egress_implementation.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/data_exfiltration_detection.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_api_example_basic.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_api_example_checks.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_api_example_json.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_api_example_overview.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_api_example_scanning.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/ca_checks.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/demofile.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/directoryscan.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/example_risk_heatmap.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/example_weakness_perfile_view.ipynb +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/filescan.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/modulescan.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/examples/overview.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/features.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/filescan.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/filescan.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/handling_errors.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/help.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/howtoscan.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/OO.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/ROI_logo.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/YourLogoHere.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/ai_use.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/architecture_overview.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/codeauditlogo.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/filescan_screenshot_16012026.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/modulescan_screenshot_16012026.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/nocxbanner.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/overview_linkaudit.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/images/overview_screenshot_16012026.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/implementedvalidations.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/installation.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/issues.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/license.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/makeitbetter.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/modulescan.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/overviewplot.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/pca_overview.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/project_philosophy.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/sponsors.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/userguide.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/warnings.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/whatissast.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/docs/whysast.md +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/filescan.png +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/__init__.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/altairplots.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/api_helpers.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/api_reporting.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/checkmodules.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/ci_workflowscan.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/complexitycheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/corecli.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/dashboard_reports.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/data/secretslist.txt +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/htmlhelpfunctions.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/issuevalidations.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/privacy_lint.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/security_checks.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/simple.css +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/codeaudit/totals.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/dashboard/__init__.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/dashboard/dashboardapp.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/dashboard/module_load_validation.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/src/dashboard/module_load_validation2.html +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/__init__.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/count_lines_file1.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/clean.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/elastic.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/example1.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/klyne.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/mixed.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/telemetry.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/spytestdir/telemetryfile2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/suppression/sastsuppression_1.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/suppression/sastsuppression_2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_apicalls.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_apicalls2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_base64.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_basicpatterns.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_chmod.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_constructspart2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_correctexceptionuse.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_count_commentlines.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_directorycreation.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_directorycreation2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_dynamic_import.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_edgecases.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_filescan_api.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_ftp.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_hashstrenght.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_importlib_util.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_modulecheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_obfuscatingbuiltins.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_oschecks.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_pylintreport.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_pypiscan.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_random.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_secretfinding.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_standardlibconstructs.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_subprocess.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_suppression.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_totalscheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_valid_python.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_wasmsafe_funtions.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/test_zstd.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/__init__.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_clean_import_list.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_collectsourcefiles.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_count_weaknesses.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_filehelpfunctions.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_get_weakness_counts.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/unit_tests/test_readinsourcefile.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/allshit.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/apivalidations.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/assert.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/base64.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/chmod_things.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/codeaudit_scan.json +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/complexitycheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/correctcounts.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/danger_imports.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/directorycreation.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/directorycreation2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/dunderexec_with_parsing_error.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/eval.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/eval2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/exception.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/file3.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/file_with_warnings.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/ftp.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/gzip.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/hashcheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/httpserver.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/incorrect_python_file.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/inputstatement.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/linkaudit-0.9.9.tar.gz +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/malware.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/malwareAI.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/marshal.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/modulecheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/multiprocessing.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/obfuscating.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/oschecks.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/pickle.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/python2_file_willnotwork.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/random.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/shelve.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/shutil.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/subprocess.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/syslibrary.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/tarfilevalidation.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/tempcheck.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/validation1.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/validation2.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/xml.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/zip_example.json +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/zipfile.py +0 -0
- {codeaudit-1.9.3 → codeaudit-1.9.6}/tests/validationfiles/zstd.py +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Publish Python 🐍 distribution 📦 to PyPI
|
|
2
|
+
|
|
3
|
+
# only publish to PyPI on tag pushes
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- '*' # or 'v*' if you use version tags
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Build distribution 📦
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v6
|
|
17
|
+
with:
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v6
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.x"
|
|
23
|
+
- name: Install pypa/build
|
|
24
|
+
run: >-
|
|
25
|
+
python3 -m
|
|
26
|
+
pip install
|
|
27
|
+
build
|
|
28
|
+
--user
|
|
29
|
+
- name: Build a wheel and a source distribution
|
|
30
|
+
run: python3 -m build
|
|
31
|
+
- name: Store the distribution packages
|
|
32
|
+
uses: actions/upload-artifact@v5
|
|
33
|
+
with:
|
|
34
|
+
name: python-package-distributions
|
|
35
|
+
path: dist/
|
|
36
|
+
|
|
37
|
+
publish-to-pypi:
|
|
38
|
+
name: >-
|
|
39
|
+
Publish Python 🐍 distribution 📦 to PyPI
|
|
40
|
+
|
|
41
|
+
needs:
|
|
42
|
+
- build
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
environment:
|
|
45
|
+
name: pypi
|
|
46
|
+
url: https://pypi.org/p/codeaudit
|
|
47
|
+
permissions:
|
|
48
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
49
|
+
|
|
50
|
+
steps:
|
|
51
|
+
- name: Download all the dists
|
|
52
|
+
uses: actions/download-artifact@v6
|
|
53
|
+
with:
|
|
54
|
+
name: python-package-distributions
|
|
55
|
+
path: dist/
|
|
56
|
+
- name: Publish distribution 📦 to PyPI
|
|
57
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -144,9 +144,10 @@ package-lock.json
|
|
|
144
144
|
.DS_Store
|
|
145
145
|
.nox
|
|
146
146
|
|
|
147
|
-
#Python Code Audit items for local testing /
|
|
147
|
+
#Python Code Audit items for local testing / config
|
|
148
148
|
.coverage
|
|
149
149
|
.vscode
|
|
150
150
|
src/codeaudit/.ipynb_checkpoints/
|
|
151
|
+
src/dashboard/pyodide
|
|
151
152
|
|
|
152
153
|
|
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## Version 1.9.6:
|
|
4
|
+
|
|
5
|
+
**Fixed**
|
|
6
|
+
- Corrected Github publsih action for attestation
|
|
7
|
+
|
|
8
|
+
## Version 1.9.5:
|
|
9
|
+
|
|
10
|
+
**Added**
|
|
11
|
+
|
|
12
|
+
* Added check and associated test for discovering Python `ctypes` library loading.
|
|
13
|
+
* Configured GitHub Action for [PyPI.org](https://pypi.org/project/codeaudit/#security) attestation.
|
|
14
|
+
|
|
15
|
+
**Changed**
|
|
16
|
+
|
|
17
|
+
* Updated the benchmark suite with a `ctypes` example.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
**Documentation**
|
|
21
|
+
|
|
22
|
+
* Updated documentation with information regarding the Python `ctypes` library loading check.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Version 1.9.4:
|
|
26
|
+
|
|
27
|
+
**Added**
|
|
28
|
+
|
|
29
|
+
- Added new API function: `get_weakness_counts_per_file`.
|
|
30
|
+
|
|
31
|
+
- Added a benchmark help function file to dynamically generate an overview of the Python SAST benchmark files.
|
|
32
|
+
|
|
33
|
+
- Added a benchmarking suite for Python SAST scanners.
|
|
34
|
+
|
|
35
|
+
**Changed**
|
|
36
|
+
|
|
37
|
+
- Breaking Change: Removed the API function get_construct_counts. Use the improved get_weakness_count (or `get_weakness_counts_per_file)` function instead.
|
|
38
|
+
|
|
39
|
+
- Updated `pyproject.toml` to use a fixed version for [`fileaudit`](https://pypi.org/project/fileaudit/).
|
|
40
|
+
|
|
41
|
+
**Fixed**
|
|
42
|
+
|
|
43
|
+
- Improved handling for `tar.gz` sdist files.
|
|
44
|
+
|
|
45
|
+
**Documentation**
|
|
46
|
+
|
|
47
|
+
- Updated the manual with documentation covering the Python SAST scanner benchmarking suite and helper files.
|
|
48
|
+
|
|
3
49
|
## Version 1.9.3:
|
|
4
50
|
|
|
5
51
|
**Changed**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: codeaudit
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.6
|
|
4
4
|
Summary: A modern Python security source code analyzer (SAST) based on distrust.
|
|
5
5
|
Project-URL: Homepage, https://codeaudit.nocomplexity.com
|
|
6
6
|
Project-URL: Documentation, https://github.com/nocomplexity/codeaudit#readme
|
|
@@ -23,7 +23,7 @@ Classifier: Topic :: Security
|
|
|
23
23
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
24
24
|
Requires-Python: >=3.12
|
|
25
25
|
Requires-Dist: altair==6.0.0
|
|
26
|
-
Requires-Dist: fileaudit
|
|
26
|
+
Requires-Dist: fileaudit==0.2.5
|
|
27
27
|
Requires-Dist: fire==0.7.1
|
|
28
28
|
Requires-Dist: pandas>=2.3
|
|
29
29
|
Provides-Extra: test
|
|
@@ -139,7 +139,7 @@ Use the Python Code Audit documentation (https://codeaudit.nocomplexity.com) to
|
|
|
139
139
|
|
|
140
140
|
## Example
|
|
141
141
|
|
|
142
|
-
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **
|
|
142
|
+
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **95 validations** implemented.
|
|
143
143
|
|
|
144
144
|
The `codeaudit filescan` command shows all **potential** security issues that are detected in the source file in a HTML-report.
|
|
145
145
|
|
|
@@ -103,7 +103,7 @@ Use the Python Code Audit documentation (https://codeaudit.nocomplexity.com) to
|
|
|
103
103
|
|
|
104
104
|
## Example
|
|
105
105
|
|
|
106
|
-
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **
|
|
106
|
+
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **95 validations** implemented.
|
|
107
107
|
|
|
108
108
|
The `codeaudit filescan` command shows all **potential** security issues that are detected in the source file in a HTML-report.
|
|
109
109
|
|
|
@@ -43,6 +43,7 @@ parts:
|
|
|
43
43
|
- file: checks/input_check
|
|
44
44
|
- file: checks/builtinfunctions_check
|
|
45
45
|
- file: checks/chmod_check
|
|
46
|
+
- file: checks/ctypes_check
|
|
46
47
|
- file: checks/binding_check
|
|
47
48
|
- file: checks/directorycreation_check
|
|
48
49
|
- file: checks/dynamicimport_check
|
|
@@ -72,7 +73,8 @@ parts:
|
|
|
72
73
|
- file: architecture
|
|
73
74
|
- file: makeitbetter
|
|
74
75
|
- file: project_philosophy
|
|
75
|
-
- file: codeauditcommands
|
|
76
|
+
- file: codeauditcommands
|
|
77
|
+
- file: benchmarksuite
|
|
76
78
|
- file: changelog
|
|
77
79
|
|
|
78
80
|
|
|
@@ -18,6 +18,15 @@ Currently, I lead initiatives at NoComplexity.com, an innovative IT company focu
|
|
|
18
18
|
:class-container: text-center
|
|
19
19
|
:gutter: 3
|
|
20
20
|
|
|
21
|
+
:::{grid-item-card}
|
|
22
|
+
:link: https://github.com/nocomplexity/fileaudit
|
|
23
|
+
:link-type: url
|
|
24
|
+
{octicon}`book;2em;caption-text` **Python File Audit**
|
|
25
|
+
^^^
|
|
26
|
+
Simplify Python Security by adding one line! Build secure Python applications by default. Validate files before you use them.Protect your Python applications and scripts against untrusted or malicious files.
|
|
27
|
+
:::
|
|
28
|
+
|
|
29
|
+
|
|
21
30
|
:::{grid-item-card}
|
|
22
31
|
:link: https://securitytesting.nocomplexity.com/
|
|
23
32
|
:link-type: url
|