How dsrodriguezse/api_security_tester works
Project type and purpose
• This is a Python‐based, command-line tool ("API Security Tester") designed to perform automated security assessments of RESTful APIs in cloud environments.
• It implements OWASP API Security Top 10 tests, orchestrates attack payload generation, HTTP request execution, response analysis, and report generation, all driven by CLI parameters or YAML/JSON configuration files.
File structure
• Top-level Python modules:
• main.py – entry point and CLI argument parsing
• config.py – loads and validates CLI args and config files (YAML/JSON)
• attack_generator.py – builds test payloads per OWASP categories
• request_executor.py – sends HTTP requests (handles timeouts, retries, delays, auth headers)
• response_analyzer.py – inspects responses for vulnerability indicators
• report_generator.py – formats and writes JSON, Markdown, HTML reports
• Configuration artifacts:
• config.yaml(.example) and pokeconfig.yaml – sample/default configuration
• Documentation in Docs/ covering installation, design, user manual, test environments
• requirements.txt – Python dependencies (e.g., requests, PyYAML)
README for additional insights
• Workflows supported: simple scan, authenticated scan, config-file‐driven runs, sample config generation.
• Reporting: selectable output formats (json, markdown, html, all).
• Integrates with CI/CD via CLI interface.
• Vulnerability categories implemented map directly to modules in attack_generator.