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.
Files changed (320) hide show
  1. codeaudit-1.10.0/.github/workflows/publish-release.yml +57 -0
  2. codeaudit-1.10.0/.github/workflows/release-notes.yml +44 -0
  3. {codeaudit-1.9.4 → codeaudit-1.10.0}/CHANGELOG.md +43 -0
  4. {codeaudit-1.9.4 → codeaudit-1.10.0}/PKG-INFO +5 -4
  5. {codeaudit-1.9.4 → codeaudit-1.10.0}/README.md +2 -1
  6. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_toc.yml +2 -0
  7. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/architecture.md +8 -1
  8. codeaudit-1.10.0/docs/checks/ctypes_check.md +33 -0
  9. codeaudit-1.10.0/docs/citing.md +23 -0
  10. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditcommands.md +1 -1
  11. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/codeauditchecks.html +84 -48
  12. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/demoscan.json +2 -2
  13. codeaudit-1.10.0/docs/images/CA_architecture.png +0 -0
  14. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/intro.md +2 -1
  15. {codeaudit-1.9.4 → codeaudit-1.10.0}/pyproject.toml +2 -2
  16. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/__about__.py +1 -1
  17. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/altairplots.py +79 -61
  18. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_helpers.py +4 -1
  19. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_interfaces.py +76 -22
  20. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/dashboard_reports.py +67 -7
  21. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/data/sastchecks.csv +6 -0
  22. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/filehelpfunctions.py +24 -26
  23. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/pypi_package_scan.py +4 -2
  24. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/reporting.py +42 -31
  25. codeaudit-1.10.0/src/dashboard/dashboardapp.py +401 -0
  26. codeaudit-1.9.4/src/dashboard/dashboardapp.py → codeaudit-1.10.0/src/dashboard/webdashboard.py +72 -113
  27. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/README.md +4 -0
  28. codeaudit-1.10.0/tests/benchmarkfiles/validpython/ctypes_example.py +119 -0
  29. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_benchmark.py +47 -46
  30. codeaudit-1.10.0/tests/test_ctypes_detection.py +54 -0
  31. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_filescan_api.py +13 -0
  32. codeaudit-1.10.0/tests/validationfiles/ctypes_example.py +119 -0
  33. codeaudit-1.10.0/tests/validationfiles/ctypes_example2.py +12 -0
  34. codeaudit-1.10.0/tests/validationfiles/dissect-3.22.tar.gz +0 -0
  35. codeaudit-1.9.4/cov_html/.gitignore +0 -2
  36. codeaudit-1.9.4/cov_html/class_index.html +0 -321
  37. codeaudit-1.9.4/cov_html/coverage_html_cb_dd2e7eb5.js +0 -735
  38. codeaudit-1.9.4/cov_html/favicon_32_cb_c827f16f.png +0 -0
  39. codeaudit-1.9.4/cov_html/function_index.html +0 -1571
  40. codeaudit-1.9.4/cov_html/index.html +0 -288
  41. codeaudit-1.9.4/cov_html/keybd_closed_cb_900cfef5.png +0 -0
  42. codeaudit-1.9.4/cov_html/status.json +0 -1
  43. codeaudit-1.9.4/cov_html/style_cb_9ff733b0.css +0 -389
  44. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8___about___py.html +0 -101
  45. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8___init___py.html +0 -101
  46. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_altairplots_py.html +0 -1098
  47. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_helpers_py.html +0 -382
  48. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_interfaces_py.html +0 -704
  49. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_api_reporting_py.html +0 -141
  50. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_checkmodules_py.html +0 -250
  51. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_codeaudit_dashboard_py.html +0 -436
  52. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_codeaudit_py.html +0 -200
  53. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_complexitycheck_py.html +0 -217
  54. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_dashboard_reports_py.html +0 -510
  55. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_filehelpfunctions_py.html +0 -233
  56. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_htmlhelpfunctions_py.html +0 -195
  57. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_issuevalidations_py.html +0 -239
  58. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_privacy_lint_py.html +0 -454
  59. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_pypi_package_scan_py.html +0 -211
  60. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_reporting_py.html +0 -1103
  61. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_security_checks_py.html +0 -155
  62. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_suppression_py.html +0 -335
  63. codeaudit-1.9.4/cov_html/z_15dab3f49bf85fa8_totals_py.html +0 -278
  64. {codeaudit-1.9.4 → codeaudit-1.10.0}/.github/workflows/python-test.yml +0 -0
  65. {codeaudit-1.9.4 → codeaudit-1.10.0}/.github/workflows/sast_validation.yml +0 -0
  66. {codeaudit-1.9.4 → codeaudit-1.10.0}/.gitignore +0 -0
  67. {codeaudit-1.9.4 → codeaudit-1.10.0}/CONTRIBUTE.md +0 -0
  68. {codeaudit-1.9.4 → codeaudit-1.10.0}/LICENSE.txt +0 -0
  69. {codeaudit-1.9.4 → codeaudit-1.10.0}/SECURITY.md +0 -0
  70. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/CLIcommands.ipynb +0 -0
  71. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/CONTRIBUTE.md +0 -0
  72. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_config.yml +0 -0
  73. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/_static/nocxstyle.css +0 -0
  74. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/about.md +0 -0
  75. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/api_intro.md +0 -0
  76. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/codeaudit.rst +0 -0
  77. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/apidocs/modules.rst +0 -0
  78. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/benchmarksuite.ipynb +0 -0
  79. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/changelog.md +0 -0
  80. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/assert_check.md +0 -0
  81. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/base64_check.md +0 -0
  82. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/binding_check.md +0 -0
  83. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/builtinfunctions_check.md +0 -0
  84. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/chmod_check.md +0 -0
  85. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/directorycreation_check.md +0 -0
  86. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/dynamicimport_check.md +0 -0
  87. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/exception_check.md +0 -0
  88. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/ftp_check.md +0 -0
  89. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/hash_check.md +0 -0
  90. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/httpserver_check.md +0 -0
  91. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/input_check.md +0 -0
  92. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/loggingconf_check.md +0 -0
  93. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/marshal_check.md +0 -0
  94. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/mktemp_check.md +0 -0
  95. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/multiprocessing_check.md +0 -0
  96. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/pickle_check.md +0 -0
  97. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/random_check.md +0 -0
  98. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/shelve_check.md +0 -0
  99. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/shutil_check.md +0 -0
  100. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/subprocess_check.md +0 -0
  101. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/syscalls_check.md +0 -0
  102. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/systemcalls_check.md +0 -0
  103. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/tarfile_extract_check.md +0 -0
  104. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/xml_check.md +0 -0
  105. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checks/zipfile_check.md +0 -0
  106. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/checksinformation.md +0 -0
  107. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/cimode.md +0 -0
  108. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditchecks.md +0 -0
  109. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/codeauditoverview.md +0 -0
  110. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/complexitycheck.md +0 -0
  111. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/data_egress_implementation.md +0 -0
  112. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/data_exfiltration_detection.md +0 -0
  113. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_basic.ipynb +0 -0
  114. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_checks.ipynb +0 -0
  115. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_json.ipynb +0 -0
  116. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_overview.ipynb +0 -0
  117. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_api_example_scanning.ipynb +0 -0
  118. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/ca_checks.ipynb +0 -0
  119. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/demofile.py +0 -0
  120. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/directoryscan.html +0 -0
  121. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/example_risk_heatmap.ipynb +0 -0
  122. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/example_weakness_perfile_view.ipynb +0 -0
  123. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/filescan.html +0 -0
  124. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/modulescan.html +0 -0
  125. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/examples/overview.html +0 -0
  126. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/features.md +0 -0
  127. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/filescan.md +0 -0
  128. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/filescan.png +0 -0
  129. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/handling_errors.md +0 -0
  130. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/help.md +0 -0
  131. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/howtoscan.md +0 -0
  132. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/OO.png +0 -0
  133. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/ROI_logo.png +0 -0
  134. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/YourLogoHere.png +0 -0
  135. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/ai_use.png +0 -0
  136. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/architecture_overview.png +0 -0
  137. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/codeauditlogo.png +0 -0
  138. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/filescan_screenshot_16012026.png +0 -0
  139. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/modulescan_screenshot_16012026.png +0 -0
  140. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/nocxbanner.png +0 -0
  141. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/overview_linkaudit.png +0 -0
  142. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/images/overview_screenshot_16012026.png +0 -0
  143. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/implementedvalidations.md +0 -0
  144. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/installation.md +0 -0
  145. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/issues.md +0 -0
  146. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/license.md +0 -0
  147. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/makeitbetter.md +0 -0
  148. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/markingissues.md +0 -0
  149. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/modulescan.md +0 -0
  150. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/overviewplot.png +0 -0
  151. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/pca_overview.png +0 -0
  152. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/project_philosophy.md +0 -0
  153. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/sponsors.md +0 -0
  154. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/userguide.md +0 -0
  155. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/warnings.md +0 -0
  156. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/whatissast.md +0 -0
  157. {codeaudit-1.9.4 → codeaudit-1.10.0}/docs/whysast.md +0 -0
  158. {codeaudit-1.9.4 → codeaudit-1.10.0}/filescan.png +0 -0
  159. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/__init__.py +0 -0
  160. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/api_reporting.py +0 -0
  161. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/benchmark_helpfunctions.py +0 -0
  162. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/checkmodules.py +0 -0
  163. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/ci_workflowscan.py +0 -0
  164. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/complexitycheck.py +0 -0
  165. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/corecli.py +0 -0
  166. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/data/secretslist.txt +0 -0
  167. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/htmlhelpfunctions.py +0 -0
  168. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/issuevalidations.py +0 -0
  169. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/privacy_lint.py +0 -0
  170. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/security_checks.py +0 -0
  171. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/simple.css +0 -0
  172. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/suppression.py +0 -0
  173. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/codeaudit/totals.py +0 -0
  174. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/__init__.py +0 -0
  175. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/module_load_validation.html +0 -0
  176. {codeaudit-1.9.4 → codeaudit-1.10.0}/src/dashboard/module_load_validation2.html +0 -0
  177. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/__init__.py +0 -0
  178. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/invalidpython/ddos_blockingCPython_example.py +0 -0
  179. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/assert.py +0 -0
  180. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/assert_check.py +0 -0
  181. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/base64.py +0 -0
  182. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/binding.py +0 -0
  183. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/bz2.py +0 -0
  184. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/compile.py +0 -0
  185. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ddos_blockingCPython_example2.py +0 -0
  186. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ddos_blockingCPython_example3.py +0 -0
  187. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/eval_example.py +0 -0
  188. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/exceptionhandling.py +0 -0
  189. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/exec_example.py +0 -0
  190. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/fileoperations.py +0 -0
  191. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/filepermissions.py +0 -0
  192. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/forkbomb_example.py +0 -0
  193. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/ftp.py +0 -0
  194. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/getattr_example.py +0 -0
  195. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/homoglyphs_example.py +0 -0
  196. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/httpserver.py +0 -0
  197. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/import_example.py +0 -0
  198. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/input_example.py +0 -0
  199. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/log4shell_pattern.py +0 -0
  200. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/logging.py +0 -0
  201. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/lzma_example.py +0 -0
  202. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/lzma_open.py +0 -0
  203. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/marshal.py +0 -0
  204. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/multiprocessing.py +0 -0
  205. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example.py +0 -0
  206. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example2.py +0 -0
  207. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/obfuscation_example3.py +0 -0
  208. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_examples.py +0 -0
  209. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_execution.py +0 -0
  210. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/os_pseudo_fork.py +0 -0
  211. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/osforking.py +0 -0
  212. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/pickle_example.py +0 -0
  213. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/random.py +0 -0
  214. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/sha_examples.py +0 -0
  215. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/shelve.py +0 -0
  216. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/shutil_example.py +0 -0
  217. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/subprocess.py +0 -0
  218. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/syscalls.py +0 -0
  219. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/tarfile_example.py +0 -0
  220. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/tempfile_example.py +0 -0
  221. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/vulnerable_parse.py +0 -0
  222. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/xmlrpc.py +0 -0
  223. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zipfile_example.py +0 -0
  224. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zipfile_example2.py +0 -0
  225. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/benchmarkfiles/validpython/zstd.py +0 -0
  226. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/count_lines_file1.py +0 -0
  227. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/clean.py +0 -0
  228. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/elastic.py +0 -0
  229. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/example1.py +0 -0
  230. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/klyne.py +0 -0
  231. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/mixed.py +0 -0
  232. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/telemetry.py +0 -0
  233. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/spytestdir/telemetryfile2.py +0 -0
  234. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_0.py +0 -0
  235. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_1.py +0 -0
  236. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/suppression/sastsuppression_2.py +0 -0
  237. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_apicalls.py +0 -0
  238. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_apicalls2.py +0 -0
  239. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_base64.py +0 -0
  240. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_basicpatterns.py +0 -0
  241. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_chmod.py +0 -0
  242. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_constructspart2.py +0 -0
  243. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_correctexceptionuse.py +0 -0
  244. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_count_commentlines.py +0 -0
  245. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_directorycreation.py +0 -0
  246. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_directorycreation2.py +0 -0
  247. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_dynamic_import.py +0 -0
  248. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_edgecases.py +0 -0
  249. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_ftp.py +0 -0
  250. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_hashstrenght.py +0 -0
  251. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_importlib_util.py +0 -0
  252. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_modulecheck.py +0 -0
  253. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_obfuscatingbuiltins.py +0 -0
  254. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_oschecks.py +0 -0
  255. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_pylintreport.py +0 -0
  256. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_pypiscan.py +0 -0
  257. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_random.py +0 -0
  258. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_secretfinding.py +0 -0
  259. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_standardlibconstructs.py +0 -0
  260. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_subprocess.py +0 -0
  261. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_suppression.py +0 -0
  262. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_suppressionlogic.py +0 -0
  263. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_totalscheck.py +0 -0
  264. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_valid_python.py +0 -0
  265. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_wasmsafe_funtions.py +0 -0
  266. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/test_zstd.py +0 -0
  267. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/__init__.py +0 -0
  268. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_clean_import_list.py +0 -0
  269. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_collectsourcefiles.py +0 -0
  270. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_count_weaknesses.py +0 -0
  271. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_filehelpfunctions.py +0 -0
  272. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_get_weakness_counts.py +0 -0
  273. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_readinsourcefile.py +0 -0
  274. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/unit_tests/test_weakness_count_per_file.py +0 -0
  275. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/allshit.py +0 -0
  276. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/apivalidations.py +0 -0
  277. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/assert.py +0 -0
  278. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/base64.py +0 -0
  279. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/chmod_things.py +0 -0
  280. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/codeaudit_scan.json +0 -0
  281. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/complexitycheck.py +0 -0
  282. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/correctcounts.py +0 -0
  283. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/danger_imports.py +0 -0
  284. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/directorycreation.py +0 -0
  285. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/directorycreation2.py +0 -0
  286. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/dunderexec_with_parsing_error.py +0 -0
  287. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/eval.py +0 -0
  288. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/eval2.py +0 -0
  289. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/exception.py +0 -0
  290. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/file3.py +0 -0
  291. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/file_with_warnings.py +0 -0
  292. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/ftp.py +0 -0
  293. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/gzip.py +0 -0
  294. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/hashcheck.py +0 -0
  295. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/httpserver.py +0 -0
  296. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/incorrect_python_file.py +0 -0
  297. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/inputstatement.py +0 -0
  298. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/linkaudit-0.9.9.tar.gz +0 -0
  299. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/malware.py +0 -0
  300. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/malwareAI.py +0 -0
  301. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/marshal.py +0 -0
  302. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/modulecheck.py +0 -0
  303. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/multiprocessing.py +0 -0
  304. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/obfuscating.py +0 -0
  305. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/oschecks.py +0 -0
  306. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/pickle.py +0 -0
  307. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/python2_file_willnotwork.py +0 -0
  308. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/random.py +0 -0
  309. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/shelve.py +0 -0
  310. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/shutil.py +0 -0
  311. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/subprocess.py +0 -0
  312. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/syslibrary.py +0 -0
  313. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/tarfilevalidation.py +0 -0
  314. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/tempcheck.py +0 -0
  315. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/validation1.py +0 -0
  316. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/validation2.py +0 -0
  317. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/xml.py +0 -0
  318. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/zip_example.json +0 -0
  319. {codeaudit-1.9.4 → codeaudit-1.10.0}/tests/validationfiles/zipfile.py +0 -0
  320. {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.9.4
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.5
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
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/codeaudit.svg)](https://pypi.org/project/codeaudit)
44
44
  [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10970/badge)](https://www.bestpractices.dev/projects/10970)
45
45
  [![Documentation](https://img.shields.io/badge/Python%20Code%20Audit%20Handbook-Available-blue)](https://nocomplexity.com/documents/codeaudit/intro.html)
46
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24402976.svg)](https://doi.org/10.5281/zenodo.24402976)
46
47
  [![License](https://img.shields.io/badge/License-GPLv3-FFD700)](https://nocomplexity.com/documents/codeaudit/license.html)
47
48
  [![Try WebAssembly Version](https://img.shields.io/badge/Try_Live-In%20Your%20Browser-8A2BE2)](https://nocomplexity.com/codeauditapp/dashboardapp.html)
48
49
  [![PyPI Downloads](https://static.pepy.tech/badge/codeaudit)](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 **89 validations** implemented.
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
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/codeaudit.svg)](https://pypi.org/project/codeaudit)
8
8
  [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10970/badge)](https://www.bestpractices.dev/projects/10970)
9
9
  [![Documentation](https://img.shields.io/badge/Python%20Code%20Audit%20Handbook-Available-blue)](https://nocomplexity.com/documents/codeaudit/intro.html)
10
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24402976.svg)](https://doi.org/10.5281/zenodo.24402976)
10
11
  [![License](https://img.shields.io/badge/License-GPLv3-FFD700)](https://nocomplexity.com/documents/codeaudit/license.html)
11
12
  [![Try WebAssembly Version](https://img.shields.io/badge/Try_Live-In%20Your%20Browser-8A2BE2)](https://nocomplexity.com/codeauditapp/dashboardapp.html)
12
13
  [![PyPI Downloads](https://static.pepy.tech/badge/codeaudit)](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 **89 validations** implemented.
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
  ![Architecture Overview](images/architecture_overview.png)
28
28
 
29
+ More in-depth:
30
+ ![CA_architecture](images/CA_architecture.png)
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
- ![AI-use](images/ai_use.png)
92
+ ![AI-use](images/ai_use.png)
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
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24402976.svg)](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
+
@@ -1,6 +1,6 @@
1
1
  % THIS FILE IS GENERATED! - Use CLIcommands.ipynb to make it better!
2
2
  # Commands Overview
3
- Python Code Audit commands for: version: 1.9.4
3
+ Python Code Audit commands for: version: 1.10.0
4
4
  ```
5
5
  ----------------------------------------------------
6
6
  _ __ _