Add CLI security review app for Chrome and WhatsApp#6
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2071da7. Configure here.
| score = 0 | ||
| max_score = sum(q.weight for q in questions) | ||
|
|
||
| print(f"Security Review: {args.target.title()}\n") |
There was a problem hiding this comment.
JSON output polluted by stdout print statements
High Severity
When --json is used, the print() on line 76 ("Security Review: ...") and the print("Please enter y or n.") in ask_boolean both write to stdout before the JSON blob is emitted. This makes the --json output invalid — any downstream tool parsing stdout as JSON will fail. The header print is unconditionally called regardless of the --json flag, and the retry prompt in ask_boolean also goes to stdout.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 2071da7. Configure here.


Motivation
Description
security_review_app.py, a CLI questionnaire that contains targeted control sets underREVIEW_QUESTIONSforchromeandwhatsapp.ask_boolean, weighted scoring, and agradefunction that maps scores toLOW RISK/MODERATE RISK/HIGH RISK.--jsonwhich emits a structured report object.Testing
python3 -m py_compile security_review_app.pyand the file compiled without errors.python3 security_review_app.py --helpand the CLI printed the expected usage/help text.Codex Task
Note
Low Risk
Adds a standalone CLI script with interactive input and JSON output; no existing production logic is modified. Risk is low, mainly around usability/maintainability of the questionnaire/scoring thresholds.
Overview
Introduces
security_review_app.py, a standalone interactive CLI questionnaire for Chrome extensions and WhatsApp integrations with weighted questions and a simple score-to-risk grading (LOW/MODERATE/HIGH).Supports both a terminal summary and a
--jsonmode that emits a structured report including score, risk rating, and passed/failed controls.Reviewed by Cursor Bugbot for commit 2071da7. Bugbot is set up for automated code reviews on this repo. Configure here.