Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/packages/security-pro-pack/skills/performing-security-audits

performing-security-audits

Verified

Analyze code, infrastructure, and configurations by conducting comprehensive security audits. It leverages tools within the security-pro-pack plugin, including vulnerability scanning, compliance checking, and cryptography review. Use when assessing security or running audits. Trigger with phrases like 'security scan', 'audit', or 'vulnerability'.

FileKindSize
SKILL.mdskill md4.0 KB
assets/README.mdmarkdown294 B
assets/compliance_report_template.mdmarkdown5.1 KB
assets/security_scan_report_template.mdmarkdown7.9 KB
assets/threat_model_template.mdmarkdown6.4 KB
references/README.mdmarkdown60 B
scripts/README.mdmarkdown531 B
scripts/security_scan.pyexecutablescript2.8 KB

scripts/security_scan.py

View on GitHub
#!/usr/bin/env python3
"""
security-pro-pack - security_scan.sh
Automates running various security scans (e.g., nmap, nessus) and parsing the results.
Generated: 2025-12-10 03:48:17
"""

import sys
import json
import argparse
from pathlib import Path


def process_file(file_path: Path) -> bool:
    """Process individual file."""
    if not file_path.exists():
        print(f"❌ File not found: {file_path}")
        return False

    print(f"πŸ“„ Processing: {file_path}")

    # Add processing logic here based on skill requirements
    # This is a template that can be customized

    try:
        if file_path.suffix == ".json":
            with open(file_path) as f:
                data = json.load(f)
            print(f"  βœ“ Valid JSON with {len(data)} keys")
        else:
            size = file_path.stat().st_size
            print(f"  βœ“ File size: {size:,} bytes")

        return True
    except Exception as e:
        print(f"  βœ— Error: {e}")
        return False


def process_directory(dir_path: Path) -> int:
    """Process all files in directory."""
    processed = 0
    failed = 0

    for file_path in dir_path.rglob("*"):
        if file_path.is_file():
            if process_file(file_path):
                processed += 1
            else:
                failed += 1

    return processed, failed


def main():
    parser = argparse.ArgumentParser(
        description="Automates running various security scans (e.g., nmap, nessus) and parsing the results."
    )
    parser.add_argument("input", help="Input file or directory")
    parser.add_argument("--output", "-o", help="Output directory")
    parser.add_argument("--verbose", "-v", action="store_true", help="Verbose output")
    parser.add_argument("--config", "-c", help="Configuration file")

    args = parser.parse_args()

    input_path = Path(args.input)

    print("πŸš€ security-pro-pack - security_scan.sh")
    print("   Category: packages")
    print("   Plugin: security-pro-pack")
    print(f"   Input: {input_path}")

    if args.config:
        if Path(args.config).exists():
            with open(args.config) as f:
                json.load(f)
            print(f"   Config: {args.config}")

    # Process input
    if input_path.is_file():
        success = process_file(input_path)
        result = 0 if success else 1
    elif input_path.is_dir():
        processed, failed = process_directory(input_path)
        print("\nπŸ“Š SUMMARY")
        print(f"   βœ… Processed: {processed}")
        print(f"   ❌ Failed: {failed}")
        result = 0 if failed == 0 else 1
    else:
        print(f"❌ Invalid input: {input_path}")
        result = 1

    if result == 0:
        print("\nβœ… Completed successfully")
    else:
        print("\n❌ Completed with errors")

    return result


if __name__ == "__main__":
    sys.exit(main())
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall