Skip to main content

Static Code Analysis Helper helps you perform static code analysis.

Project description

Logo

Static-Code-Analysis-Helper Version License Python Version Docker

Static-Code-Analysis-Helper

Description

It detects functions that are likely to cause attack methodologies in many web programming languages ​​and frameworks in your project folder.

Helps you perform static code analysis.

Note : Many of the functions described here may not cause vulnerabilities.

ScreenShot

Programming Languages

  • Go
  • Python
  • Ruby
  • PHP
  • JavaScript
  • Java
  • Rust
  • Perl
  • Ruby on Rails
  • Swift
  • Golang
  • Scala
  • Kotlin
  • Julia
  • Dart
  • ASP.NET Core

Types of attacks related to results

SQLi, XSS, XXE, CSRF, SSTI, SSRF, IDOR, CORS, XSHM, LFI, DoS, DDoS, RFI, Weak Encryption / Insecure Cryptographic Storage, Path Traversel, Session Attacks,Open Redirect, Insecure File Permissions, XPath Injection, File Uploads, Memory Corruption / Buffer Overflow, Security Misconfiguration, Reflected File Download, CSV Injection, Command Injection, WebSocket Vulnerabilities, Race Condition, Code Injection, Malicious File Deserialization, JWT Vulnerabilities, Broken Access Control, Content Spoofing, Authentication Vulnerabilities, Cookie Vulnerabilities, Business Logic Vulnerabilities.

TODO

  • ******** Private Repository
  • ******** Private Repository
  • Scan Multiple Programming Language with MultiThread
  • Detecting functions that contain other structures. Environment variables etc.
  • Feature to download from Github, Gitlab or Bitbucket to the repository periodically.

NOTE : Please See; USAGE_POLICY.md LICENSE

Installation

From Git


git clone https://github.com/OsmanKandemir/static-code-analysis-helper.git
cd static-code-analysis-helper
python3 scanner.py -f "/Users/Test/ProjectFolder" -o result.txt

From Source Code

git clone https://github.com/OsmanKandemir/static-code-analysis-helper.git
cd static-code-analysis-helper
python -m build
python setup.py install

From Pypi

Function Usage

from StaticCodeAnalysisHelper import FileScan

# Specific Programming Language Scan

FileScan.AdvancedFileScanning("/Desktop/My-Project","java","result.txt")

# Full Scan

FileScan.AdvancedFileScanning("/Desktop/My-Project",None,"result.txt")

From Dockerfile

docker build -t staticcodeanalysishelper .
docker run -v <YOUR-PROJECT-PATH-FOLDER>:/static-code-analysis-helper/Project staticcodeanalysishelper -f /static-code-analysis-helper/Project -p <YOUR-PROGRAMMING-LANGUAGE>

From DockerHub

Usage


-f FOLDER [FOLDER], --folder Folder [FOLDER] Project Folder Path. --folder
-p PROGRAMMING [PROGRAMMING], --programming python [PROGRAMMING] Select Programming Language. --programming
-o OUTPUT [FILENAME] --output [FILENAME] Save output. --output

Programming Language List : java, asp.net, python, dart, ruby, go, php, rust, javascript, perl, scala, golang, kotlin, julia

Please, scan the only project files for the correct result.

Development and Contribution

To continue developing the application StaticCodeAnalysisHelper/LanguagesFunctions.py you can add new functions to the file according to the following syntaxes.

{"function": "function()","description": "description"}
{"function": "function[]","description": "description"}
{"function": "function","description": "description"}

See; CONTRIBUTING.md

License

Copyright (c) 2025 Osman Kandemir
Licensed under the GPL-3.0 License.

Donations

If you like Static-Code-Analysis-Helper and would like to show support, you can use Buy A Coffee or Github Sponsors feature for the developer using the button below.

Or

Sponsor me : https://github.com/sponsors/OsmanKandemir 😊

Buy Me A Coffee

Your support will be much appreciated😊

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

staticcodeanalysishelper-1.0.0.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

staticcodeanalysishelper-1.0.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file staticcodeanalysishelper-1.0.0.tar.gz.

File metadata

File hashes

Hashes for staticcodeanalysishelper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 317c58ea111622d6993b5d0d2c7f1cbf63ad859297e0d1c144ff6caa518d62e3
MD5 c9d98368852929dd953536b3407c14da
BLAKE2b-256 3518bf1f5fd21fcc4a603ff02002b2427896543ca5d93196bf8dbd67201a0c93

See more details on using hashes here.

File details

Details for the file staticcodeanalysishelper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for staticcodeanalysishelper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04d1ef0d8749266ec258399ae8bd025ce032cca9703b1796d5692e6dec03a1bf
MD5 ebc49eee1fc3fc6febdba180ad33fc38
BLAKE2b-256 b835d8a5d7f6cab7e8c0df0762c1b37d2a26c6a13358839c0247048fe7686035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page