codeaudit 1.9.4__tar.gz → 1.10.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.
- codeaudit-1.10.0/.github/workflows/publish-release.yml +57 -0
- codeaudit-1.10.0/.github/workflows/release-notes.yml +44 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/CHANGELOG.md +43 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/PKG-INFO +5 -4
- {codeaudit-1.9.4 → codeaudit-1.10.0}/README.md +2 -1
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_toc.yml +2 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/architecture.md +8 -1
- codeaudit-1.10.0/docs/checks/ctypes_check.md +33 -0
- codeaudit-1.10.0/docs/citing.md +23 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditcommands.md +1 -1
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/codeauditchecks.html +84 -48
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/demoscan.json +2 -2
- codeaudit-1.10.0/docs/images/CA_architecture.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/intro.md +2 -1
- {codeaudit-1.9.4 → codeaudit-1.10.0}/pyproject.toml +2 -2
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/__about__.py +1 -1
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/altairplots.py +79 -61
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_helpers.py +4 -1
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_interfaces.py +76 -22
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/dashboard_reports.py +67 -7
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/data/sastchecks.csv +6 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/filehelpfunctions.py +24 -26
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/pypi_package_scan.py +4 -2
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/reporting.py +42 -31
- codeaudit-1.10.0/src/dashboard/dashboardapp.py +401 -0
- codeaudit-1.9.4/src/dashboard/dashboardapp.py → codeaudit-1.10.0/src/dashboard/webdashboard.py +72 -113
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/README.md +4 -0
- codeaudit-1.10.0/tests/benchmarkfiles/validpython/ctypes_example.py +119 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_benchmark.py +47 -46
- codeaudit-1.10.0/tests/test_ctypes_detection.py +54 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_filescan_api.py +13 -0
- codeaudit-1.10.0/tests/validationfiles/ctypes_example.py +119 -0
- codeaudit-1.10.0/tests/validationfiles/ctypes_example2.py +12 -0
- codeaudit-1.10.0/tests/validationfiles/dissect-3.22.tar.gz +0 -0
- codeaudit-1.9.4/cov_html/.gitignore +0 -2
- codeaudit-1.9.4/cov_html/class_index.html +0 -321
- codeaudit-1.9.4/cov_html/coverage_html_cb_dd2e7eb5.js +0 -735
- codeaudit-1.9.4/cov_html/favicon_32_cb_c827f16f.png +0 -0
- codeaudit-1.9.4/cov_html/function_index.html +0 -1571
- codeaudit-1.9.4/cov_html/index.html +0 -288
- codeaudit-1.9.4/cov_html/keybd_closed_cb_900cfef5.png +0 -0
- codeaudit-1.9.4/cov_html/status.json +0 -1
- codeaudit-1.9.4/cov_html/style_cb_9ff733b0.css +0 -389
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8___about___py.html +0 -101
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8___init___py.html +0 -101
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_altairplots_py.html +0 -1098
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_helpers_py.html +0 -382
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_interfaces_py.html +0 -704
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_reporting_py.html +0 -141
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_checkmodules_py.html +0 -250
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_codeaudit_dashboard_py.html +0 -436
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_codeaudit_py.html +0 -200
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_complexitycheck_py.html +0 -217
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_dashboard_reports_py.html +0 -510
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_filehelpfunctions_py.html +0 -233
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_htmlhelpfunctions_py.html +0 -195
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_issuevalidations_py.html +0 -239
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_privacy_lint_py.html +0 -454
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_pypi_package_scan_py.html +0 -211
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_reporting_py.html +0 -1103
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_security_checks_py.html +0 -155
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_suppression_py.html +0 -335
- codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_totals_py.html +0 -278
- {codeaudit-1.9.4 → codeaudit-1.10.0}/.github/workflows/python-test.yml +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/.github/workflows/sast_validation.yml +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/.gitignore +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/CONTRIBUTE.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/LICENSE.txt +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/SECURITY.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/CLIcommands.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/CONTRIBUTE.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_config.yml +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_static/nocxstyle.css +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/about.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/api_intro.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/codeaudit.rst +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/modules.rst +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/benchmarksuite.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/changelog.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/assert_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/base64_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/binding_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/builtinfunctions_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/chmod_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/directorycreation_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/dynamicimport_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/exception_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/ftp_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/hash_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/httpserver_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/input_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/loggingconf_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/marshal_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/mktemp_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/multiprocessing_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/pickle_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/random_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/shelve_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/shutil_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/subprocess_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/syscalls_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/systemcalls_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/tarfile_extract_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/xml_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/zipfile_check.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checksinformation.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/cimode.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditchecks.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditoverview.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/complexitycheck.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/data_egress_implementation.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/data_exfiltration_detection.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_basic.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_checks.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_json.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_overview.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_scanning.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_checks.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/demofile.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/directoryscan.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/example_risk_heatmap.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/example_weakness_perfile_view.ipynb +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/filescan.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/modulescan.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/overview.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/features.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/filescan.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/filescan.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/handling_errors.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/help.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/howtoscan.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/OO.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/ROI_logo.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/YourLogoHere.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/ai_use.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/architecture_overview.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/codeauditlogo.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/filescan_screenshot_16012026.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/modulescan_screenshot_16012026.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/nocxbanner.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/overview_linkaudit.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/overview_screenshot_16012026.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/implementedvalidations.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/installation.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/issues.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/license.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/makeitbetter.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/markingissues.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/modulescan.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/overviewplot.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/pca_overview.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/project_philosophy.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/sponsors.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/userguide.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/warnings.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/whatissast.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/whysast.md +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/filescan.png +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/__init__.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_reporting.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/benchmark_helpfunctions.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/checkmodules.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/ci_workflowscan.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/complexitycheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/corecli.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/data/secretslist.txt +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/htmlhelpfunctions.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/issuevalidations.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/privacy_lint.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/security_checks.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/simple.css +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/suppression.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/totals.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/__init__.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/module_load_validation.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/module_load_validation2.html +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/__init__.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/invalidpython/ddos_blockingCPython_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/assert.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/assert_check.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/base64.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/binding.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/bz2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/compile.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ddos_blockingCPython_example2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ddos_blockingCPython_example3.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/eval_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/exceptionhandling.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/exec_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/fileoperations.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/filepermissions.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/forkbomb_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ftp.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/getattr_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/homoglyphs_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/httpserver.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/import_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/input_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/log4shell_pattern.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/logging.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/lzma_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/lzma_open.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/marshal.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/multiprocessing.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example3.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_examples.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_execution.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_pseudo_fork.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/osforking.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/pickle_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/random.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/sha_examples.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/shelve.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/shutil_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/subprocess.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/syscalls.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/tarfile_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/tempfile_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/vulnerable_parse.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/xmlrpc.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zipfile_example.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zipfile_example2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zstd.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/count_lines_file1.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/clean.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/elastic.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/example1.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/klyne.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/mixed.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/telemetry.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/telemetryfile2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_0.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_1.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_apicalls.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_apicalls2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_base64.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_basicpatterns.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_chmod.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_constructspart2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_correctexceptionuse.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_count_commentlines.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_directorycreation.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_directorycreation2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_dynamic_import.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_edgecases.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_ftp.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_hashstrenght.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_importlib_util.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_modulecheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_obfuscatingbuiltins.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_oschecks.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_pylintreport.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_pypiscan.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_random.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_secretfinding.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_standardlibconstructs.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_subprocess.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_suppression.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_suppressionlogic.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_totalscheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_valid_python.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_wasmsafe_funtions.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_zstd.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/__init__.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_clean_import_list.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_collectsourcefiles.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_count_weaknesses.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_filehelpfunctions.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_get_weakness_counts.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_readinsourcefile.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_weakness_count_per_file.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/allshit.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/apivalidations.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/assert.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/base64.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/chmod_things.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/codeaudit_scan.json +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/complexitycheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/correctcounts.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/danger_imports.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/directorycreation.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/directorycreation2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/dunderexec_with_parsing_error.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/eval.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/eval2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/exception.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/file3.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/file_with_warnings.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/ftp.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/gzip.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/hashcheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/httpserver.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/incorrect_python_file.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/inputstatement.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/linkaudit-0.9.9.tar.gz +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/malware.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/malwareAI.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/marshal.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/modulecheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/multiprocessing.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/obfuscating.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/oschecks.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/pickle.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/python2_file_willnotwork.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/random.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/shelve.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/shutil.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/subprocess.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/syslibrary.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/tarfilevalidation.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/tempcheck.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/validation1.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/validation2.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/xml.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/zip_example.json +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/zipfile.py +0 -0
- {codeaudit-1.9.4 → codeaudit-1.10.0}/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
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Release Notes
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '[0-9]*' # 1.0.0, 2.3.1, etc.
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
release:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Create GitHub Release
|
|
20
|
+
env:
|
|
21
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
22
|
+
run: |
|
|
23
|
+
# Get the previous tag (or empty if this is the first)
|
|
24
|
+
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true)
|
|
25
|
+
|
|
26
|
+
if [ -n "$PREV_TAG" ]; then
|
|
27
|
+
NOTES=$(git log ${PREV_TAG}..HEAD --pretty=format:'* %s (%h)')
|
|
28
|
+
COMPARE="https://github.com/${{ github.repository }}/compare/${PREV_TAG}...${GITHUB_REF_NAME}"
|
|
29
|
+
else
|
|
30
|
+
NOTES=$(git log --pretty=format:'* %s (%h)')
|
|
31
|
+
COMPARE="https://github.com/${{ github.repository }}/commits/${GITHUB_REF_NAME}"
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
{
|
|
35
|
+
echo "## What's Changed"
|
|
36
|
+
echo ""
|
|
37
|
+
echo "$NOTES"
|
|
38
|
+
echo ""
|
|
39
|
+
echo "**Full Changelog**: $COMPARE"
|
|
40
|
+
} > notes.md
|
|
41
|
+
|
|
42
|
+
gh release create "$GITHUB_REF_NAME" \
|
|
43
|
+
--title "Release $GITHUB_REF_NAME" \
|
|
44
|
+
--notes-file notes.md
|
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## Version 1.10.0:
|
|
4
|
+
|
|
5
|
+
**Added**
|
|
6
|
+
|
|
7
|
+
* Added an extra keyword tag in `pyproject.toml` to support AI bots searching for tools.
|
|
8
|
+
* Added a GitHub Action to automate the creation of release notes.
|
|
9
|
+
|
|
10
|
+
**Changed**
|
|
11
|
+
|
|
12
|
+
* Updated and validated compatibility with `fileaudit` version `0.2.6`, and updated `pyproject.toml` accordingly.
|
|
13
|
+
|
|
14
|
+
**Fixed**
|
|
15
|
+
|
|
16
|
+
* Improved error handling in the `filescan` API when processing valid `.tar.gz` packages that contain no Python files.
|
|
17
|
+
* Improved `filescan` API support for valid PyPI packages that only provide `.whl` (wheel) distributions and no source distribution (`sdist`).
|
|
18
|
+
* Fixed an issue in the WASM version when handling PyPI packages that contain no Python files (such as metapackages that only list dependencies).
|
|
19
|
+
|
|
20
|
+
**Documentation**
|
|
21
|
+
|
|
22
|
+
* Added the [DOI](https://zenodo.org/records/24402976) badge/reference to the documentation.
|
|
23
|
+
|
|
24
|
+
## Version 1.9.6:
|
|
25
|
+
|
|
26
|
+
**Fixed**
|
|
27
|
+
- Corrected Github publsih action for attestation
|
|
28
|
+
|
|
29
|
+
## Version 1.9.5:
|
|
30
|
+
|
|
31
|
+
**Added**
|
|
32
|
+
|
|
33
|
+
* Added check and associated test for discovering Python `ctypes` library loading.
|
|
34
|
+
* Configured GitHub Action for [PyPI.org](https://pypi.org/project/codeaudit/#security) attestation.
|
|
35
|
+
|
|
36
|
+
**Changed**
|
|
37
|
+
|
|
38
|
+
* Updated the benchmark suite with a `ctypes` example.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
**Documentation**
|
|
42
|
+
|
|
43
|
+
* Updated documentation with information regarding the Python `ctypes` library loading check.
|
|
44
|
+
|
|
45
|
+
|
|
3
46
|
## Version 1.9.4:
|
|
4
47
|
|
|
5
48
|
**Added**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: codeaudit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.10.0
|
|
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
|
|
@@ -9,7 +9,7 @@ Project-URL: Source, https://github.com/nocomplexity/codeaudit
|
|
|
9
9
|
Author-email: Maikel Mardjan <mike@bm-support.org>
|
|
10
10
|
License-Expression: GPL-3.0-or-later
|
|
11
11
|
License-File: LICENSE.txt
|
|
12
|
-
Keywords: Complexity Checker,Python SAST,SAST,SAST API
|
|
12
|
+
Keywords: Application Security,Complexity Checker,Python SAST,SAST,SAST API
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Environment :: Console
|
|
15
15
|
Classifier: Intended Audience :: Developers
|
|
@@ -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==0.2.
|
|
26
|
+
Requires-Dist: fileaudit==0.2.6
|
|
27
27
|
Requires-Dist: fire==0.7.1
|
|
28
28
|
Requires-Dist: pandas>=2.3
|
|
29
29
|
Provides-Extra: test
|
|
@@ -43,6 +43,7 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
[](https://pypi.org/project/codeaudit)
|
|
44
44
|
[](https://www.bestpractices.dev/projects/10970)
|
|
45
45
|
[](https://nocomplexity.com/documents/codeaudit/intro.html)
|
|
46
|
+
[](https://doi.org/10.5281/zenodo.24402976)
|
|
46
47
|
[](https://nocomplexity.com/documents/codeaudit/license.html)
|
|
47
48
|
[](https://nocomplexity.com/codeauditapp/dashboardapp.html)
|
|
48
49
|
[](https://pepy.tech/projects/codeaudit)
|
|
@@ -139,7 +140,7 @@ Use the Python Code Audit documentation (https://codeaudit.nocomplexity.com) to
|
|
|
139
140
|
|
|
140
141
|
## Example
|
|
141
142
|
|
|
142
|
-
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **
|
|
143
|
+
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **95 validations** implemented.
|
|
143
144
|
|
|
144
145
|
The `codeaudit filescan` command shows all **potential** security issues that are detected in the source file in a HTML-report.
|
|
145
146
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[](https://pypi.org/project/codeaudit)
|
|
8
8
|
[](https://www.bestpractices.dev/projects/10970)
|
|
9
9
|
[](https://nocomplexity.com/documents/codeaudit/intro.html)
|
|
10
|
+
[](https://doi.org/10.5281/zenodo.24402976)
|
|
10
11
|
[](https://nocomplexity.com/documents/codeaudit/license.html)
|
|
11
12
|
[](https://nocomplexity.com/codeauditapp/dashboardapp.html)
|
|
12
13
|
[](https://pepy.tech/projects/codeaudit)
|
|
@@ -103,7 +104,7 @@ Use the Python Code Audit documentation (https://codeaudit.nocomplexity.com) to
|
|
|
103
104
|
|
|
104
105
|
## Example
|
|
105
106
|
|
|
106
|
-
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **
|
|
107
|
+
By running the `codeaudit filescan` command, detailed security information is determined for a Python file based on more than **95 validations** implemented.
|
|
107
108
|
|
|
108
109
|
The `codeaudit filescan` command shows all **potential** security issues that are detected in the source file in a HTML-report.
|
|
109
110
|
|
|
@@ -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
|
|
@@ -98,5 +99,6 @@ parts:
|
|
|
98
99
|
- file: CONTRIBUTE
|
|
99
100
|
- file: sponsors
|
|
100
101
|
- file: license
|
|
102
|
+
- file: citing
|
|
101
103
|
- file: about
|
|
102
104
|
|
|
@@ -26,6 +26,9 @@ If you are interested in learning more about architecture—and especially open
|
|
|
26
26
|
|
|
27
27
|

|
|
28
28
|
|
|
29
|
+
More in-depth:
|
|
30
|
+

|
|
31
|
+
|
|
29
32
|
|
|
30
33
|
## Architecture Principles
|
|
31
34
|
|
|
@@ -86,4 +89,8 @@ For Python Code Audit we make use of AI/ML capabilities in a secure, safe and mo
|
|
|
86
89
|
In the view below is outlined how AI/ML technology is used for the development of Python Code Audit.
|
|
87
90
|
Truth is: Most AI tools turned out to be of limited value for real trustworthy cybersecurity aspects. Human knowledge work, especially on design and security aspects is currently still vital for developing and maintaining a trustworthy Python security code analyzer!
|
|
88
91
|
|
|
89
|
-

|
|
92
|
+

|
|
93
|
+
|
|
94
|
+
## Further Reading
|
|
95
|
+
|
|
96
|
+
For the rationale and background behind **Python Code Audit (`codeaudit`)**, see the [Zenodo record](https://zenodo.org/records/24402976).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Ctypes Statement
|
|
2
|
+
|
|
3
|
+
`ctypes` is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries.
|
|
4
|
+
|
|
5
|
+
Python Code Audit checks on the use of:
|
|
6
|
+
- `ctypes.CDLL`
|
|
7
|
+
- `ctypes.WinDLL`
|
|
8
|
+
- `ctypes.OleDLL`
|
|
9
|
+
- `ctypes.windll.LoadLibrary`
|
|
10
|
+
- `ctypes.cdll.LoadLibrary`
|
|
11
|
+
- `ctypes.oledll.LoadLibrary`
|
|
12
|
+
|
|
13
|
+
:::{warning}
|
|
14
|
+
ctypes provides low-level access to native libraries and the process’s memory,**bypassing Python’s safety mechanisms and allowing execution of arbitrary native code.** Incorrect use can corrupt data and objects, reveal sensitive information, cause crashes, or otherwise compromise the running process.
|
|
15
|
+
:::
|
|
16
|
+
|
|
17
|
+
## Preventive measures
|
|
18
|
+
|
|
19
|
+
1. Never load libraries from untrusted or user-controlled input
|
|
20
|
+
2. Use `ctypes.util.find_library()` + explicit validation
|
|
21
|
+
3. Use absolute paths from a trusted location only
|
|
22
|
+
4. Apply the principle of least privilege / sandboxing
|
|
23
|
+
5. Validate and lock library integrity. From a secure supply chain perspective the loaded library must be checked using a good reproducible build approach.
|
|
24
|
+
6. Prefer safer alternatives when possible. So avoid using Python code that loads libraries that are hard to inspect upfront!
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### More information
|
|
28
|
+
|
|
29
|
+
* [ctypes — A foreign function library for Python](https://docs.python.org/3/library/ctypes.html#module-ctypes)
|
|
30
|
+
* [Technical Malware Analysis Report: Python-based RAT Malware](https://www.cyfirma.com/research/technical-malware-analysis-report-python-based-rat-malware/)
|
|
31
|
+
* [Analysis of APT37 NarwhalRAT Leveraging MS-Themed Phishing and Dead-drop C2](https://www.genians.co.kr/en/blog/threat_intelligence/narwhalrat)
|
|
32
|
+
* [CVE-2026-102734](https://nvd.nist.gov/vuln/detail/cve-2026-102734)
|
|
33
|
+
* [CVE-2026-37008: CrewAI Python Sandbox Bypass RCE Vulnerability](https://www.sentinelone.com/vulnerability-database/cve-2026-37008/?utm_source=https%3A%2F%2Fwww.google.com%2F&utm_medium=organic-search)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Citing
|
|
2
|
+
|
|
3
|
+
## Python Code Audit(codeaudit)
|
|
4
|
+
|
|
5
|
+
[](https://doi.org/10.5281/zenodo.24402976)
|
|
6
|
+
|
|
7
|
+
If you use Python Code Audit(codeaudit) in academic work, please consider citing
|
|
8
|
+
[Python Code Audit (codeaudit): A Modern, Distrust-Based Static Application Security Testing Tool](https://doi.org/10.5281/zenodo.24402975) as:
|
|
9
|
+
|
|
10
|
+
```bibtex
|
|
11
|
+
@misc{mardjan_2026_24402976,
|
|
12
|
+
author = {Mardjan, Maikel},
|
|
13
|
+
title = {Python Code Audit (codeaudit): A Modern, Distrust-
|
|
14
|
+
Based Static Application Security Testing Tool
|
|
15
|
+
},
|
|
16
|
+
month = nov,
|
|
17
|
+
year = 2026,
|
|
18
|
+
publisher = {Zenodo},
|
|
19
|
+
doi = {10.5281/zenodo.24402976},
|
|
20
|
+
url = {https://doi.org/10.5281/zenodo.24402976},
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|