A Python-based tool to detect potential scam SMS messages, particularly those impersonating government services and financial institutions in India. The system analyzes messages for suspicious patterns and provides safety recommendations based on the type of potential scam.
- Real-time SMS scam detection
- Pattern-based analysis for common scam types
- Detection of sensitive government keywords
- Recognition of financial and identity theft attempts
- Customized safety recommendations based on scam type
- Emergency contact information
- User-friendly command-line interface
- Financial scams (UPI, bank-related)
- Identity theft (Aadhaar, PAN card)
- Government impersonation
- Prize and lottery scams
- KYC fraud attempts
- OTP theft attempts
- Clone the repository:
git clone https://github.com/yourusername/fake-sms-detection.git
cd fake-sms-detection- No additional dependencies required - runs with Python standard library.
Run the script:
python fake_sms_detection.pyFollow the interactive prompts:
- Enter the SMS message you want to check
- Review the analysis results
- Follow safety recommendations if a scam is detected
- Type 'exit' to quit the program
=== Fake SMS Detection System ===
This system will help you identify potential scam messages and guide you on next steps.
Enter the message to check (or 'exit' to quit):
URGENT: Your Aadhaar card will be deactivated today. Share OTP 4523 to reactivate: +91XXXXXXXXXX
Analysis Result:
--------------------
⚠️ WARNING: This message appears to be FAKE!
Reason(s) for detection:
- Contains sensitive keyword: aadhaar
- Matches suspicious pattern: \b(urgent|immediate)\b.*\b(action|response)\b
- Matches suspicious pattern: \b(otp|password|pin)\b.*\b(share|provide|enter)\b- Detection of Aadhaar number patterns
- PAN card number pattern recognition
- Identification of suspicious URLs
- Recognition of urgent/threatening language
- Detection of requests for sensitive information
- Machine learning-based detection
- SMS forwarding integration
- Mobile app interface
- Database of known scam patterns
- Automated reporting to authorities
- Multi-language support
This tool is meant to assist in identifying potential scams but should not be considered foolproof. Always exercise caution with unexpected messages and verify through official channels when in doubt.
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Cyber Crime Portal: cybercrime.gov.in
- Emergency Cyber Crime Helpline: 1930
- Police Emergency: 112
- Hem Nikesh Gabhawala
- Indian Cyber Crime Coordination Centre
- Ministry of Home Affairs, Government of India
- Cyber Security Community
⚡️ Remember: Never share OTP, passwords, or sensitive information via SMS!