Define the system and the assets at risk
List what the application stores and what it can do: accounts, private records, uploads, payments, model calls and administrative actions. For each capability, identify the actor, required permission, trusted server and underlying data. This is a small threat model that makes the review specific instead of treating security as a decorative checklist.
Use the OWASP Top 10 as a starting framework for web risks, not a pass certificate. A generated app can look complete while leaving an important access rule unspecified. Review the actual implementation and deployment configuration together. A secure source pattern can still be undermined by a production credential with excessive permissions.
Define the release boundary. An internal prototype with sample data is different from a public product accepting private records or money. Limit the initial audience and capability set when evidence is incomplete. Make the unknowns visible to the release owner rather than replacing them with a reassuring score.
| Asset | Question | Evidence |
|---|---|---|
| Private record | Who may read and change it? | Cross-account denial test |
| Credential | Where is privileged authority held? | Server-only configuration and bundle inspection |
| Paid operation | Who can trigger and repeat it? | Authentication, limits and duplicate handling |
| Upload | Who can retrieve the resulting file? | Access rule and invalid-file tests |
Technical references: OWASP Top 10
Inspect the client bundle and credential lifecycle
Browser code and mobile packages are distributable artifacts. Inspect generated output and configuration for credentials that grant privileged service access. A value named “secret” is not safe merely because it came from an environment variable; public build variables can be compiled into the client.
Classify each credential by purpose, scope, owner and rotation process. Use the least authority required for a task. Keep privileged operations behind an authenticated server and avoid sharing live secrets in agent prompts. A screenshot of a settings panel can expose a token as easily as a source file.
If a credential has been exposed, revoke or rotate it promptly. Removing it from the current source does not invalidate the copy already distributed, and repository history can preserve it. GitHub’s remediation guide is useful for understanding why deletion and revocation are different actions. Check logs and other distribution paths as part of the response.
Technical references: GitHub: removing sensitive data
Protect operations that cost money or change state
A model endpoint, file conversion or email sender can be abused even if it returns no private data. Require the intended identity and permission, bound the input, cap work and define per-user limits. Measure server-side usage rather than trusting a client counter. Decide what happens when a request times out after the underlying work has already succeeded.
For purchases or credits, test repeated delivery and interrupted responses in a safe test environment. A retry should not grant the same entitlement twice or charge a user twice. Verify external event signatures using the relevant provider’s current documentation. Do not rely on the return URL alone as proof of a completed payment.
Document recovery authority. A support operator may need to repair an entitlement, but that ability should be scoped, recorded and distinguishable from ordinary user actions. Security and observability meet here: you need enough information to investigate without retaining sensitive request bodies indefinitely.
Check uploads, rendering and dependency changes
Try empty, oversized, malformed and unsupported inputs. For uploads, inspect file size limits, accepted formats, storage access and download behavior. A file extension is not a complete validation strategy. Confirm that error messages help the legitimate user recover without revealing internal credentials or another user’s details.
Review how untrusted text reaches the interface, database and external tools. Prefer established framework escaping and parameterized operations. If the application deliberately renders HTML, it needs an appropriate sanitization design. Treat model output as input to validate, not as privileged instructions just because the application requested it.
Inspect dependency additions in an agent diff. Ask why each package is needed, whether it is maintained and which authority it gains. A successful installation is not a trust assessment. Keep lockfiles and a reproducible build, and prioritize updates that resolve an identified risk rather than indiscriminately changing the entire stack before release.
Publish an evidence register rather than a blanket verdict
For every check, store the rule, test environment, result, tested revision and remaining limitation. Label an untested condition as untested. An automated scan may identify a known dependency problem while missing an application-specific ownership rule. A manual click test may demonstrate a journey while missing an API route.
Assign an owner and review date to unresolved items. Higher-risk applications may need a qualified independent assessment. This guide is a practical engineering review framework, not a penetration test, compliance opinion or guarantee against compromise. Keep the release decision proportional to the data and authority the app handles.
Specific answers
Common questions
Can AI-generated code be secure?
It can participate in a secure implementation, but generated origin does not establish security. Review the actual code, access policy, dependencies and deployed configuration.
Does a vulnerability scan prove the app is safe?
No. Scans cover particular checks and can miss business logic, authorization and configuration failures. Combine them with targeted tests and review.
What should I check first?
Start with privileged credentials, access to private records and operations that spend money or modify important state. Their failure has direct consequences.
Sources and editorial method
These references support the indicated technical facts. Workflows, examples and decision tables are original Roseram analysis. Illustrative costs are not vendor prices. No search volume, organic difficulty, ranking result or product endorsement is implied.
- OWASP Top 10 ↗
A starting framework for web application risk, not a security certification.
- GitHub: removing sensitive data ↗
Revoking exposed credentials and the limits of deleting them from the current file.
Roseram offers AI software and may compete with tools discussed here. Sources checked 2026-10-11. Send a sourced correction.
Your next step
Keep a practical checklist.
Mark your progress. This checklist and helpfulness choice are saved on this device only; they are not public reviews.
0 of 5 complete
Share your experience in the community or submit a sourced correction. Public experiences remain separate from editorial claims.
Bring your next idea
Keep learning. Build with context.
Get Roseram model and workspace reopening updates. The guide remains available whether or not you subscribe.
Explore the workspace guide →