Skip to Content
Alprina is in active development. Join us in building the future of security scanning.
Getting StartedYour First Security Scan

Your First Security Scan

Learn how to run your first security scan with Alprina.

Create a Test File

Let’s create a file with intentional vulnerabilities:

test.py
# test.py - Sample vulnerable code import os # Hardcoded secret (vulnerability) API_KEY = "sk-1234567890abcdef" # SQL injection vulnerability def get_user(username): query = f"SELECT * FROM users WHERE name = '{username}'" return db.execute(query) # Debug mode enabled (security risk) DEBUG = True

Run the Scan

Scan the file with Alprina:

alprina scan test.py

Understanding the Output

Alprina will identify the vulnerabilities:

πŸ” Starting scan on: test.py ⚠ Found 3 issues ┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Severity ┃ Type ┃ Description ┃ ┑━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ β”‚ HIGH β”‚ Hardcoded Secretβ”‚ API key exposed in code β”‚ β”‚ HIGH β”‚ SQL Injection β”‚ Unsanitized user input β”‚ β”‚ MEDIUM β”‚ Debug Mode β”‚ Debug mode in production β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Get Detailed Information

View more details about the findings:

alprina scan test.py --verbose

Generate a Report

Create a comprehensive report:

alprina report --format html

Next Steps

Last updated on