- Home
- Skills
- Code Quality & Review
- SaaS Architecture & Risk Auditor
Works with the AI Agents you already use
SaaS Architecture & Risk Auditor
by PolyGest
SaaS Architecture & Risk Auditor is a specialized AI skill that performs structured, read-only security and architecture assessments of software repositories.
$10
SaaS Architecture & Risk Auditor
Example session with this skill installed
I want you to perform a comprehensive SaaS architecture and security audit of my codebase using the SaaS Architecture & Risk Auditor skill.
My application is a multi-tenant SaaS platform with user authentication, role-based access control, subscription billing, payment webhooks, REST APIs, and a PostgreSQL database.
Please perform a Standard-mode, read-only assessment covering:
- Application architecture, components, and trust boundaries.
- Multi-tenant isolation and potential cross-tenant data access.
- Authentication, authorization, and access-control weaknesses.
- Payment processing, webhook security, and billing logic.
- Database queries, transaction handling, and data integrity.
- API security, input validation, and sensitive error exposure.
- Secrets management, configuration, and credential exposure.
- CI/CD workflows and dependency-related risks.
For every finding
- Provide the exact file path and relevant line references.
- Explain the technical issue and its potential business impact.
- Assign a justified severity and confidence level.
- Distinguish confirmed vulnerabilities from potential risks and unverified assumptions.
- Provide practical remediation recommendations.
Also include
- An overview of the application architecture.
- An assessment of all applicable risk domains.
- A prioritized remediation roadmap.
- A summary of areas that could not be verified.
Do not modify project files, install dependencies, execute application code, or access production systems.
Follow the skill's methodology strictly. Prioritize evidence over speculation and produce a professional, structured audit report.
- Read your context and instructions
- Compiled the saas architecture
SaaS Architecture & Risk Audit — Final Report
Skill: SaaS Architecture & Risk Auditor v1.1.2
Audit target: Controlled Mini-SaaS evaluation repository
Audit mode: Standard
Assessment type: Read-only static inspection
Overall status: Significant risks identified
1. Executive Summary
The assessment identified six security and architectural findings across the supplied demonstration repository.
| Severity | Findings |
|---|---|
| Critical | 0 |
| High | 3 |
| Medium | 2 |
| Low | 1 |
| Informational | 0 |
| Total | 6 |
The most important risks concern privileged CI/CD execution, payment webhook verification, and cross-tenant data access.
The findings are prioritized according to their potential business impact, likelihood, and available evidence.
2. Architecture Overview
The inspected demonstration application contains:
- Node.js and Express application components.
- JWT-based authentication.
- Order management endpoints.
- SQL database interactions.
- Payment webhook handling.
- Docker configuration.
- GitHub Actions CI/CD workflow.
The repository inventory identified 10 text files, including five JavaScript files, one SQL file, and one YAML file.
The assessment used static inspection, script-assisted inventory, and manual source review.
3. Detailed Security Findings
SAR-001 — Privileged CI/CD Workflow Exposure
Severity: HIGH
Impact: Major
Likelihood: Likely
Affected file: .github/workflows/ci.yml
Observation:
The workflow uses pull_request_target, grants broad write permissions, checks out pull-request code, and runs dependency installation and tests.
Risk:
Executing untrusted pull-request code in a privileged workflow context may expose repository permissions and sensitive CI resources.
Recommended remediation:
- Minimize workflow permissions.
- Separate trusted and untrusted execution contexts.
- Avoid executing untrusted pull-request code with privileged tokens.
- Review checkout and event-trigger configurations.
SAR-002 — Payment Webhook Verification Gap
Severity: HIGH
Impact: Major
Likelihood: Likely
Affected file: src/routes/webhooks.js
Observation:
The visible webhook handler processes payment status, amount, and order identifiers supplied in the request body. Signature verification and idempotency controls are not visible in the inspected implementation.
Risk:
If no upstream verification exists, unauthorized requests could potentially manipulate payment status.
Recommended remediation:
- Verify payment-provider signatures.
- Validate event authenticity and expected amounts.
- Implement idempotent event processing.
- Prevent duplicate or unauthorized payment-state transitions.
Verification note: External gateway or infrastructure controls were not included in the supplied repository and could affect the final assessment.
SAR-003 — Cross-Tenant Access and SQL Injection Risk
Severity: HIGH
Impact: Severe
Likelihood: Possible
Affected file: src/routes/orders.js
Observation:
The order retrieval operation interpolates an order identifier into an SQL query and does not visibly enforce tenant ownership in the inspected query.
Risk:
This creates potential SQL injection and cross-tenant data exposure risks.
Recommended remediation:
- Replace dynamic SQL interpolation with parameterized queries.
- Enforce tenant ownership in every resource lookup.
- Derive tenant identity from authenticated server-side context.
- Add tests for cross-tenant access denial.
SAR-004 — Client-Controlled Tenant Assignment
Severity: MEDIUM
Impact: Major
Likelihood: Possible
Affected file: src/routes/orders.js
Observation:
The order creation handler accepts a tenant identifier from the request body.
Risk:
A client may attempt to create records under an organization other than the authenticated user's authorized tenant.
Recommended remediation:
Derive tenant identity from the verified authentication context and validate resource ownership server-side.
SAR-005 — Missing Visible Transaction Boundary
Severity: LOW
Impact: Moderate
Likelihood: Possible
Affected file: src/routes/orders.js
Observation:
Inventory updates and order insertion are performed as separate database operations without a visible transaction.
Risk:
Partial failures could leave inventory and order records inconsistent.
Recommended remediation:
Use an atomic database transaction covering inventory updates and order creation.
SAR-006 — Internal Error Information Exposure
Severity: MEDIUM
Impact: Moderate
Likelihood: Likely
Affected file: src/server.js
Observation:
Authentication error responses expose stack traces and internal error details.
Risk:
Sensitive implementation information may be disclosed to API clients.
Recommended remediation:
Return generic client-facing error messages and preserve detailed diagnostics only in protected server-side logs.
4. Additional Security Observations
The demonstration configuration contains explicitly marked evaluation values. These must not be treated as confirmed production credential leaks.
Development fallback configuration should nevertheless be reviewed before any production deployment.
The Docker configuration also uses a floating base image tag and runs as root. These are hardening opportunities requiring deployment-context verification.
5. Prioritized Remediation Roadmap
Priority 1 — Immediate
- Harden the CI/CD workflow and isolate untrusted pull requests.
- Implement payment webhook signature verification.
- Enforce tenant-scoped database access and parameterized SQL.
Priority 2 — Short Term
- Remove client-controlled tenant assignment.
- Introduce transactions for related order and inventory operations.
- Prevent internal stack traces from reaching clients.
Priority 3 — Continuous Improvement
- Review container privileges and base image pinning.
- Add tenant-isolation and payment-workflow regression tests.
- Strengthen security monitoring and configuration management.
6. Validation and Limitations
- Repository inventory was performed.
- Relevant source files were manually inspected.
- Findings were checked against the skill's severity framework.
- The structured findings JSON passed the bundled validation checks.
- Application code and project tests were not executed.
- No live penetration testing was performed.
- No production infrastructure was accessed.
- External payment-provider verification could not be established from the supplied files.
A validation pass confirms report structure and rating consistency; it does not independently prove every finding.
7. Final Assessment
The demonstration repository contains three high-priority findings and three additional weaknesses requiring remediation.
The most urgent actions concern CI/CD security, payment webhook integrity, and tenant isolation.
This report is limited to the supplied educational repository. It must not be interpreted as a security certification or a production-readiness guarantee.
SaaS Architecture & Risk Auditor — Evidence Before Conclusions.
Connects securely to your tools. The creator never sees your data.
About this skill
Find the Risks Hidden in Your SaaS Codebase
A SaaS application can look perfectly functional while hiding weaknesses in tenant isolation, authorization, payment workflows, database integrity, or deployment configuration.
SaaS Architecture & Risk Auditor is a specialized AI skill that performs structured, read-only security and architecture assessments of software repositories.
It helps SaaS founders, developers, CTOs, engineering teams, and technology consultants understand their application's technical risks and decide what should be investigated or fixed first.
Its guiding principle is simple:
Evidence Before Conclusions.
What It Examines
The assessment covers 16 structured risk domains, including:
- Multi-tenant isolation and resource ownership.
- Authentication, sessions, and authorization.
- Database integrity and transaction handling.
- API security and input handling.
- Payment webhooks, billing, and subscription entitlements.
- Secrets, cryptography, and sensitive data.
- Dependencies and software supply-chain risks.
- CI/CD workflows and deployment configuration.
- Reliability, observability, and recovery.
- Performance, scalability, and maintainability.
- Testing and change safety.
- AI and LLM-related risks, when applicable.
The actual coverage depends on the files and architecture information available for review.
Three Audit Modes
Quick Mode
A focused initial assessment with an architecture overview, the five highest-priority risk areas, and important unknowns.
Standard Mode
A broader assessment of applicable risk domains, traces up to three critical application flows, and produces a prioritized report with up to 12 main findings.
Deep Mode
Extends the Standard assessment with broader CI/CD and supply-chain review, migration inspection, dependency-version inventory, and optional read-only Git-history secret-exposure analysis when repository history and the required tools are available.
How It Works
- Repository discovery: Identifies the available source files, languages, frameworks, databases, integrations, and configuration.
- Architecture mapping: Examines application components, trust boundaries, tenant context, and important integrations.
- Static inspection: Reviews relevant source files, configurations, manifests, migrations, and documentation.
- Critical flow tracing: Investigates important authorization, tenant, payment, and data-integrity paths.
- Evidence-based assessment: Evaluates findings using severity, confidence, impact, likelihood, and available source evidence.
- Reporting: Produces a structured assessment and a prioritized remediation roadmap.
What You Receive
Depending on the audit mode and available evidence, the deliverables include:
- Application architecture overview and trust-boundary analysis.
- Assessment of applicable risk domains.
- Findings with source file paths and line references.
- Critical, High, Medium, Low, or Informational severity ratings.
- Confidence and evidence-basis classifications.
- Technical explanations and potential business impact.
- Practical remediation recommendations.
- Prioritized engineering roadmap.
- Verification plan.
- Optional machine-readable findings JSON.
English and French report templates are included.
Evidence-Led Engineering, Not Speculative Vulnerability Lists
The skill is designed to distinguish confirmed weaknesses, plausible risks, and unverified assumptions.
It prioritizes traceable evidence, transparent uncertainty, calibrated severity, and practical recommendations.
The objective is not to produce the longest possible list of vulnerabilities. It is to help engineering teams investigate the right problems and prioritize meaningful improvements.
Frameworks and Repository Compatibility
Designed for repository-based SaaS applications using technologies such as JavaScript, TypeScript, Node.js, Express, Python, Go, Ruby, SQL, and relational databases.
Compatibility depends on the connected AI agent's ability to follow the SKILL.md format and inspect the supplied project files.
Optional helper scripts use Python. Deep-mode Git-history analysis additionally requires Git and accessible repository history.
Important Limitations
This is a read-only, repository-based engineering assessment. It is not a live penetration-testing service or a security certification.
Known Limitations
SaaS Architecture & Risk Auditor is a repository-based static engineering assessment tool. It has the following limitations:
-
No Live Penetration Testing: It does not perform active security testing, exploit validation, network scanning, or attacks against live applications.
-
No Automatic Code Fixing: It identifies risks and provides remediation recommendations but does not automatically modify application source code or implement fixes.
-
No Production Access: It does not connect to production databases, cloud infrastructure, live services, or external systems as part of a standard audit.
-
No Project Code Execution by Default: Builds, application scripts, migrations, and project tests are not executed by default. Any explicitly authorized execution must use a disposable copy and an appropriate safety boundary.
-
Source Availability Matters: Audit conclusions are limited to the repository files, code snippets, documentation, and architecture information provided by the user. Missing files and inaccessible components may leave important risks unverified.
-
Git History Analysis Is Limited: Optional Deep-mode secret-exposure analysis requires accessible Git history. It examines reachable commits within a configurable limit and does not guarantee detection of every historical exposure.
-
Optional Tools May Not Be Available: Script-assisted inventory, Git-history scanning, and findings validation depend on the AI agent's ability to execute the bundled helper scripts. Static inspection remains available when these tools cannot run.
-
No Security Certification: Audit reports are engineering assessments, not compliance opinions, formal security certifications, or guarantees that an application is secure or production-ready.
Important: Findings must always be interpreted within the documented audit scope. External infrastructure controls, gateway protections, and third-party services may require separate verification.
The skill prioritizes evidence, transparent uncertainty, and practical remediation over speculative vulnerability claims.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.