# thezubairusman/api-security-audit-framework architecture

> Architecture diagram of the GitHub repository thezubairusman/api-security-audit-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thezubairusman/api-security-audit-framework
- Repository: https://github.com/thezubairusman/api-security-audit-framework

## Overview

This repository is an API security audit toolkit, not an API service. Its principal workflow is an auditor selecting an automated scan or a manual methodology, assessing a target API, and documenting findings. The README also describes GraphQL-specific testing, compliance guidance, Postman automation, and reporting resources. No source excerpts were provided, so the relationships below are limited to workflows explicitly documented in the README; implementation-level calls are not inferred.

Main entry points: [`tools/scripts/run-newman.sh`](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/run-newman.sh) (Newman Runner), [`tools/scripts/basic_scan.sh`](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/basic_scan.sh) (Basic Scanner), [`tools/scripts/comprehensive-scan.sh`](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/comprehensive-scan.sh) (Comprehensive Audit), [`tools/scripts/generate_report.sh`](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/generate_report.sh) (Report Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_audit["Audit Methods"]
  node_audit_guide["Audit Methodology<br/>[audit_guide.md]"]
  node_graphql_guide["GraphQL Testing Guide"]
  node_auth_checklist["Authentication Checklist"]
  node_data_checklist["Data Exposure Checklist"]
  node_logic_checklist["Business Logic Checklist"]
  node_graphql_checklist["GraphQL Checklist"]
end

subgraph group_automation["Automated Testing"]
  node_basic_scan["Basic Scanner<br/>[basic_scan.sh]"]
  node_comprehensive_scan["Comprehensive Audit"]
  node_newman_runner["Newman Runner<br/>[run-newman.sh]"]
  node_postman_collection["Security Test Collection"]
  node_postman_environment["Postman Environment<br/>[environment.json]"]
end

subgraph group_guidance["Guidance &amp; Compliance"]
  node_compliance["Compliance Guidance"]
  node_remediation["Remediation Priorities"]
end

subgraph group_reporting["Reporting Resources"]
  node_vulnerability_template["Vulnerability Report"]
  node_executive_template["Executive Summary"]
  node_report_generator["Report Generator<br/>[generate_report.sh]"]
end

node_auditor(("Auditor"))
node_findings["Audit Findings"]

node_auditor -->|"runs scan"| node_basic_scan
node_auditor -->|"runs audit"| node_comprehensive_scan
node_auditor -->|"runs tests"| node_newman_runner
node_auditor -->|"follows methodology"| node_audit_guide
node_auditor -->|"follows guidance"| node_graphql_guide
node_auditor -->|"uses checklist"| node_auth_checklist
node_auditor -->|"uses checklist"| node_data_checklist
node_auditor -->|"uses checklist"| node_logic_checklist
node_auditor -->|"uses checklist"| node_graphql_checklist
node_auditor -->|"checks compliance"| node_compliance
node_auditor -->|"prioritizes fixes"| node_remediation
node_auditor -->|"documents findings"| node_vulnerability_template
node_auditor -->|"summarizes results"| node_executive_template
node_newman_runner -->|"runs collection"| node_postman_collection
node_newman_runner -->|"uses environment"| node_postman_environment
node_basic_scan -->|"detects issues"| node_findings
node_comprehensive_scan -->|"assesses security"| node_findings
node_report_generator -->|"generates reports"| node_findings

click node_basic_scan "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/basic_scan.sh"
click node_comprehensive_scan "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/comprehensive-scan.sh"
click node_newman_runner "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/run-newman.sh"
click node_postman_collection "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/postman-collections/collections_security_tests.json"
click node_postman_environment "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/postman/environment.json"
click node_audit_guide "https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/audit_guide.md"
click node_graphql_guide "https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/graphql-security.md"
click node_auth_checklist "https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/authentication-audit.md"
click node_data_checklist "https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/data-exposure-checklist.md"
click node_logic_checklist "https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/business-logic-tests.md"
click node_graphql_checklist "https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/graphql-security-checklist.md"
click node_compliance "https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/compliance_checklist.md"
click node_remediation "https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/remediation-priorities.md"
click node_vulnerability_template "https://github.com/thezubairusman/api-security-audit-framework/blob/main/templates/vulnerability_report.md"
click node_executive_template "https://github.com/thezubairusman/api-security-audit-framework/blob/main/templates/executive_summary.md"
click node_report_generator "https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/generate_report.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_audit_guide,node_graphql_guide,node_auth_checklist,node_data_checklist,node_logic_checklist,node_graphql_checklist toneBlue
class node_basic_scan,node_comprehensive_scan,node_newman_runner,node_postman_collection,node_postman_environment toneAmber
class node_compliance,node_remediation toneMint
class node_vulnerability_template,node_executive_template,node_report_generator toneRose
class node_auditor,node_findings toneIndigo
```

## Components

### Audit Methods

- [Audit Methodology](https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/audit_guide.md): `docs/audit_guide.md`
- [GraphQL Testing Guide](https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/graphql-security.md): `docs/graphql-security.md`
- [Authentication Checklist](https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/authentication-audit.md): `checklists/authentication-audit.md`
- [Data Exposure Checklist](https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/data-exposure-checklist.md): `checklists/data-exposure-checklist.md`
- [Business Logic Checklist](https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/business-logic-tests.md): `checklists/business-logic-tests.md`
- [GraphQL Checklist](https://github.com/thezubairusman/api-security-audit-framework/blob/main/checklists/graphql-security-checklist.md): `checklists/graphql-security-checklist.md`

### Automated Testing

- [Basic Scanner](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/basic_scan.sh): `tools/scripts/basic_scan.sh`
- [Comprehensive Audit](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/comprehensive-scan.sh): `tools/scripts/comprehensive-scan.sh`
- [Newman Runner](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/run-newman.sh): `tools/scripts/run-newman.sh`
- [Security Test Collection](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/postman-collections/collections_security_tests.json): `tools/postman-collections/collections_security_tests.json`
- [Postman Environment](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/postman/environment.json): `tools/postman/environment.json`

### Guidance & Compliance

- [Compliance Guidance](https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/compliance_checklist.md): `docs/compliance_checklist.md`
- [Remediation Priorities](https://github.com/thezubairusman/api-security-audit-framework/blob/main/docs/remediation-priorities.md): `docs/remediation-priorities.md`

### Reporting Resources

- [Vulnerability Report](https://github.com/thezubairusman/api-security-audit-framework/blob/main/templates/vulnerability_report.md): `templates/vulnerability_report.md`
- [Executive Summary](https://github.com/thezubairusman/api-security-audit-framework/blob/main/templates/executive_summary.md): `templates/executive_summary.md`
- [Report Generator](https://github.com/thezubairusman/api-security-audit-framework/blob/main/tools/scripts/generate_report.sh): `tools/scripts/generate_report.sh`

### Other components

- **Auditor**
- **Audit Findings**

## Connections

- Auditor → Basic Scanner: runs scan (evidence: `README.md`)
- Auditor → Comprehensive Audit: runs audit (evidence: `README.md`)
- Auditor → Newman Runner: runs tests (evidence: `README.md`)
- Auditor → Audit Methodology: follows methodology (evidence: `README.md`)
- Auditor → GraphQL Testing Guide: follows guidance (evidence: `README.md`)
- Auditor → Authentication Checklist: uses checklist (evidence: `README.md`)
- Auditor → Data Exposure Checklist: uses checklist (evidence: `README.md`)
- Auditor → Business Logic Checklist: uses checklist (evidence: `README.md`)
- Auditor → GraphQL Checklist: uses checklist (evidence: `README.md`)
- Auditor → Compliance Guidance: checks compliance (evidence: `README.md`)
- Auditor → Remediation Priorities: prioritizes fixes (evidence: `README.md`)
- Auditor → Vulnerability Report: documents findings (evidence: `README.md`)
- Auditor → Executive Summary: summarizes results (evidence: `README.md`)
- Newman Runner → Security Test Collection: runs collection (evidence: `README.md`)
- Newman Runner → Postman Environment: uses environment (evidence: `README.md`)
- Basic Scanner → Audit Findings: detects issues (evidence: `README.md`)
- Comprehensive Audit → Audit Findings: assesses security (evidence: `README.md`)
- Report Generator → Audit Findings: generates reports (evidence: `README.md`)
