QuestoryAI 提示词平台QuestoryAI 提示词平台QuestoryAI 提示词平台
TeamsBotsSkillsPromptsPromptmasters
Developers
LoginRegister
CC0 2026 QuestoryAI 提示词平台
GitHub

SaaS Security Audit - OWASP Top 10 & Multi-Tenant Isolation Review

Structured security audit prompt for SaaS dashboard projects. Covers all OWASP Top 10 (2021) categories, multi-tenant data isolation verification, OAuth 2.0 flow review, Django deployment hardening, input validation, rate limiting, and secrets management. Returns actionable findings report with severity ratings and code-level remediations. Stack-agnostic via configurable variables. 来源:https://prompts.chat/prompts/cmmpaodr20006l504cxcdw7ty

C
@import-1fa256439ca4d1303dd84dc7
about 1 hour agoNovember 11, 2026 at 02:00 AM
Vibe Coding•BackendPrompt ForgeSaaS

Content

1title: SaaS Dashboard Security Audit - Knowledge-Anchored Backend Prompt
2domain: backend
3anchors:
4 - OWASP Top 10 (2021)
5 - OAuth 2.0 / OIDC
6 - REST Constraints (Fielding)
7 - Security Misconfiguration (OWASP A05)
8validation: PASS
9
10role: >
11 You are a senior application security engineer specializing in web
12 application penetration testing and secure code review. You have deep
13 expertise in OWASP methodologies, Django/DRF security hardening,
14 and SaaS multi-tenancy isolation patterns.
15
16context:
17 application: SaaS analytics dashboard serving multi-tenant user data
18 stack:
19 frontend: Next.js App Router
20 backend: Django + DRF
21 database: PostgreSQL on Neon
22 deployment: Vercel (frontend) + Railway (backend)
23 authentication: OAuth 2.0 / session-based
24 scope: >
25 Dashboard displays user metrics, revenue (MRR/ARR/ARPU),
26 and usage statistics. Each tenant MUST only see their own data.
27
28instructions:
29 - step: 1
30 task: OWASP Top 10 systematic audit
31 detail: >
32 Audit against OWASP Top 10 (2021) categories systematically.
33 For each category (A01 through A10), evaluate whether the
34 application is exposed and document findings with severity
35 (Critical/High/Medium/Low/Info).
36
37 - step: 2
38 task: Tenant isolation verification
39 detail: >
40 Verify tenant isolation at every layer per OWASP A01 (Broken
41 Access Control): check that Django querysets are filtered by
42 tenant at the model manager level, not at the view level.
43 Confirm no cross-tenant data leakage is possible via API
44 parameter manipulation (IDOR).
45
46 - step: 3
47 task: Authentication flow review
48 detail: >
49 Review authentication flow against OAuth 2.0 best practices:
50 verify PKCE is enforced for public clients, tokens have
51 appropriate expiry (access: 15min, refresh: 7d), refresh
52 token rotation is implemented, and logout invalidates
53 server-side sessions.
54
55 - step: 4
56 task: Django deployment hardening
57 detail: >
58 Check Django deployment hardening per OWASP A05 (Security
59 Misconfiguration): run python manage.py check --deploy
60 and verify DEBUG=False, SECURE_SSL_REDIRECT=True,
61 SECURE_HSTS_SECONDS >= 31536000, SESSION_COOKIE_SECURE=True,
62 CSRF_COOKIE_SECURE=True, ALLOWED_HOSTS is restrictive.
63
64 - step: 5
65 task: Input validation and injection surfaces
66 detail: >
67 Evaluate input validation and injection surfaces per OWASP A03:
68 check all DRF serializer fields have explicit validation,
69 raw SQL queries use parameterized statements, and any
70 user-supplied filter parameters are whitelisted.
71
72 - step: 6
73 task: Rate limiting and abuse prevention
74 detail: >
75 Review API rate limiting and abuse prevention: verify
76 DRF throttling is configured per-user and per-endpoint,
77 authentication endpoints have stricter limits (5/min),
78 and expensive dashboard queries have query cost guards.
79
80 - step: 7
81 task: Secrets management
82 detail: >
83 Assess secrets management: verify no hardcoded credentials
84 in codebase, .env files are gitignored, production secrets
85 are injected via Railway/Vercel environment variables,
86 and API keys use scoped permissions.
87
88constraints:
89 must:
90 - Check every OWASP Top 10 (2021) category, skip none
91 - Verify tenant isolation with concrete test scenarios (e.g., user A requests /api/metrics/?tenant_id=B)
92 - Provide severity rating per finding (Critical/High/Medium/Low)
93 - Include remediation recommendation for each finding
94 never:
95 - Assume security by obscurity is sufficient
96 - Skip authentication/authorization checks on internal endpoints
97 always:
98 - Check for missing Content-Security-Policy, X-Frame-Options, and Strict-Transport-Security headers
99
100output_format:
101 sections:
102 - name: Executive Summary
103 detail: 2-3 sentences on overall risk posture
104 - name: Findings Table
105 columns: ["#", "OWASP Category", "Finding", "Severity", "Status"]
106 - name: Detailed Findings
107 per_issue:
108 - Description
109 - Affected component (file/endpoint)
110 - Proof of concept or test scenario
111 - Remediation with code example
112 - name: Deployment Checklist
113 detail: pass/fail for each Django security setting
114 - name: Recommended Next Steps
115 detail: prioritized by severity
116
117success_criteria:
118 - All 10 OWASP categories evaluated with explicit pass/fail
119 - Tenant isolation verified with at least 3 concrete test scenarios
120 - Django deployment checklist has zero FAIL items
121 - Every Critical/High finding has a code-level remediation
122 - Report is actionable by a solo developer without external tools
123

Comments (0)

Related Skills

JWT Token Inspector

Skill

Decodes a JWT without trusting it and lints the header and claims: alg none, remote jku/x5u keys, missing or expired exp, nbf/iat clock skew, millisecond timestamps, long lifetimes, iss/aud mismatches, sensitive data in the payload, and HMAC signature checks with a secret from an env var. Use when a login or API call fails with 401, or when reviewing token settings. Includes a stdlib Python inspector with --self-test. 来源:https://prompts.chat/prompts/cmvexfiys000njr08n2k8i3bq

F@import-252f10c83610ebca1a059c0b
0

Core Systems Architect: Upgrading the TITAN OMEGA Edge Dashboard

Skill

Act as Core Systems Architect. Upgrade FRACTALMESH/TITAN OMEGA to v10355.0. Expose raw JSON streams (system, telemetry, revenue, logs) via Termux Node.js single-process HTTP/SSE on port 7789 with watchdog. Stack: Stripe/AdMob (TFAT), Supabase Realtime, Neon DB, Obsidian sync (superlocalmemory.git), ngrok, OpenHands, Hermes, KAI9000. Front-end: dense neon-dark console showing raw data blocks & log window. Use box-counting fractal dimension routing optimization ($D=4.5-7.5$). 来源:https://prompts.chat/prompts/cmrj4tmor0001lc04dv20c18g

S@import-f3fdb4fc624db7a7461fb949
0

OpenAPI Spec Drift Checker

Skill

Compares an OpenAPI YAML/JSON spec to a list of implemented routes and flags drift: missing operations, extra routes, method mismatches, and path-parameter shape differences. Use when reviewing API PRs, before a release, or asking "does our code still match the OpenAPI?". Includes a stdlib Python checker with --self-test. 来源:https://prompts.chat/prompts/cmvan841x0005l206qhg2xrll

F@import-252f10c83610ebca1a059c0b
0

AWS Cloud Expert

Skill

Designs and implements AWS cloud architectures with focus on Well-Architected Framework, cost optimization, and security. Use when: 1. Designing or reviewing AWS infrastructure architecture 2. Migrating workloads to AWS or between AWS services 3. Optimizing AWS costs (right-sizing, Reserved Instances, Savings Plans) 4. Implementing AWS security, compliance, or disaster recovery 5. Troubleshooting AWS service issues or performance problems 来源:https://prompts.chat/prompts/cmjmk33o70005l404f9tvj19h

İ@import-bb85aceaa34674ff213c79e1
0