Skip to main content

Static Application Security Testing tool for JavaScript

Project description

ARTHEON-SAST

Static Application Security Testing Tool for JavaScript

A powerful, minimalist SAST scanner designed to detect security vulnerabilities in JavaScript code with precision and simplicity.


Features

  • 🔍 11 Vulnerability Categories - Detects eval usage, hardcoded secrets, SQL injection, XSS, and more
  • 128 Comprehensive Regex Patterns - Covers common security pitfalls
  • 📊 Professional HTML Reports - Clean, minimalista design inspired by SonarQube
  • Fast Scanning - Efficient line-by-line vulnerability detection
  • 🎯 No Duplicates - Smart duplicate prevention system
  • 📱 Responsive Reports - Works on desktop and mobile devices

Installation

From PyPI

pip install artheon-sast

Development Installation

git clone https://github.com/yourusername/artheon-sast.git
cd artheon-sast
pip install -e .

Usage

Command Line

artheon-sast /path/to/your/project

This will:

  1. Scan all .js files in the directory
  2. Detect security vulnerabilities
  3. Generate an HTML report
  4. Automatically open the report in your browser

Python API

from language_analyzer import SecurityScanner

scanner = SecurityScanner("/path/to/project")
scanner.scan()
report_path = scanner.generate_html_report()

Vulnerability Categories

Category Severity Examples
eval() Usage CRITICAL eval(userInput)
Hardcoded Secrets CRITICAL API keys, passwords in code
SQL Injection CRITICAL Dynamic SQL queries
Command Injection CRITICAL Shell command execution
XSS Vulnerabilities HIGH Unsafe HTML injection
Insecure Crypto HIGH MD5, SHA1 usage
Path Traversal HIGH Unsafe file path handling
Insecure CORS MEDIUM Wildcard CORS policies
No Input Validation MEDIUM Missing parameter checks
Prototype Pollution HIGH Unsafe object manipulation
Insecure Dependencies MEDIUM Known vulnerable packages

Report Format

The tool generates a professional HTML report with:

  • Summary Metrics - Total issues, critical, high, and medium severity counts
  • File Grouping - Vulnerabilities organized by file
  • Context Display - Shows the exact line of code with the vulnerability
  • Severity Indicators - Color-coded by severity level
  • Responsive Design - Works on all screen sizes

Testing

pytest tests/ -v

All tests pass: ✅ 6/6 tests passing

Requirements

  • Python 3.8+
  • No external dependencies (uses only stdlib)

Authors

  • Dorian Tituaña
  • Ismael Toala

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Disclaimer

This tool is designed for authorized security testing only. Users are responsible for ensuring they have permission to scan the code they analyze.


Developed with ❤️ for secure code

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

artheon_sast-1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

artheon_sast-1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file artheon_sast-1.1.tar.gz.

File metadata

  • Download URL: artheon_sast-1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for artheon_sast-1.1.tar.gz
Algorithm Hash digest
SHA256 900c91e2d6569af7fc9b70756059d432fbd382aed23645c8975e2b39d31db79a
MD5 9f32d6994bacf34864a5930d82c36caa
BLAKE2b-256 424c02b22c7b8832a0236c9eac9b948744c7b2c11400003d3910c732db8da4d8

See more details on using hashes here.

File details

Details for the file artheon_sast-1.1-py3-none-any.whl.

File metadata

  • Download URL: artheon_sast-1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for artheon_sast-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86bff1a527c42f7ef7793c1c505734faa6303d0feb589df3e99e1b2230a71006
MD5 52625728e902c8d0df2068dfd031e098
BLAKE2b-256 a3f3cb38e186d722ba4e924fb44a36d753dbc70307c72edaec37a031ff8dbbe2

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