Every day, millions of Indians receive fake job messages on WhatsApp and Telegram — promising guaranteed income, work-from-home opportunities, and instant hiring. Victims pay ₹500–₹5,000 in "registration fees" before realizing it's a scam. No tool existed specifically for these short, informal messages — until now.
Paste any suspicious job message and get back an instant AI-powered risk assessment:
| Field | Description |
|---|---|
risk_score |
0–100 risk score |
verdict |
Safe / Suspicious / Likely Scam / Definite Scam |
scam_type |
Registration Fee Scam, Guaranteed Job Scam, Work From Home Scam, Data Harvesting Scam, Impersonation Scam |
red_flags |
Specific suspicious phrases/patterns detected |
safe_signals |
Legitimate signals found in the message |
advice |
One actionable sentence for the user |
💡 Smart Fallback: If Groq rate-limits during a live demo, a keyword-based cache returns the correct response automatically — zero downtime.
- Upload PDF job offer letters for instant analysis
- Report scams to a community database — warns other users
- Browse Recent Scams feed — crowd-sourced scam intelligence
scam-detector/
├── backend/
│ ├── main.py # FastAPI app — POST /analyze, GET /
│ └── evaluate.py # 20-message labeled test set + CSV evaluation report
├── frontend/
│ └── index.html # Single-file UI — animated risk gauge, red flags, safe signals
└── requirements.txt
- Python 3.10+
- Free Groq API key from console.groq.com
git clone https://github.com/RithishPK/scamshield.git
cd scamshieldWindows
python -m venv venv
venv\Scripts\activatemacOS / Linux
python -m venv venv
source venv/bin/activatepip install -r requirements.txtCreate backend/.env:
GROQ_API_KEY=your_groq_api_key_here
⚠️ Never commit.envto GitHub. It is already listed in.gitignore.
cd backend
uvicorn main:app --reload- API: http://127.0.0.1:8000
- Swagger docs: http://127.0.0.1:8000/docs
- Start the backend (above)
- Open
frontend/index.htmlin your browser - Paste any WhatsApp or Telegram job message → click Analyze
Request
{ "message": "Urgent hiring! Work from home. Earn Rs 800/hour. Registration fee Rs 500 only." }Response
{
"risk_score": 94,
"verdict": "Likely Scam",
"scam_type": "Registration Fee Scam",
"red_flags": ["Upfront registration fee demanded", "Unrealistic income promise", "No company name"],
"safe_signals": [],
"advice": "Never pay any fee to get a job — legitimate employers do not charge candidates."
}Run the responsible AI evaluation script against a 20-message labeled test set:
cd backend
python evaluate.py| Metric | Score |
|---|---|
| Overall Accuracy | 100% (20/20) |
| Scam Precision | 100% |
| Scam Recall | 100% |
| F1 Score | 100% |
⚠️ Honest caveat: Test set was curated. Real-world accuracy on unseen data would be lower.
Responsible AI principles applied:
- ✅ Transparency — all predictions logged with scores and reasoning
- ✅ Calibration — accuracy measured against labeled ground truth
- ✅ Explainability — red flags verified against known scam pattern categories
| Layer | Technology |
|---|---|
| Backend | FastAPI, Python 3.10+ |
| LLM Inference | Groq API (Llama 3.3 70B) |
| Frontend | HTML, CSS, JavaScript |
| AI IDE | trae.ai SOLO |
| Evaluation | Custom responsible AI evaluation script |
| Database | Supabase (PostgreSQL) |
https://thescamshield.netlify.app
MIT License — free to use and modify.