# πŸ›‘οΈ AntiScam Pro [![Python](https://img.shields.io/badge/Python-3.10%2B-blue.svg?logo=python&logoColor=white)](https://www.python.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Open Source](https://img.shields.io/badge/Open%20Source-%E2%9D%A4-lightgrey.svg)](https://github.com/zvspany/antiscam-pro) [![Contributions Welcome](https://img.shields.io/badge/Contributions-Welcome-blueviolet.svg)](https://github.com/zvspany/antiscam-pro/pulls) --- **AntiScam Pro** is a modern, open-source security toolkit designed to detect **phishing, scam, and spam** in messages, phone numbers, and URLs. It combines **AI-powered analysis (BERT)**, **heuristic detection**, and **VirusTotal integration** to deliver precise, transparent, and explainable results. --- ## ✨ Key Features - πŸ€– **AI-powered message classification** – fine-tuned BERT model detects phishing or spam text. - πŸ”— **Smart URL inspection** – resolves redirects, short links, and checks domains via VirusTotal. - πŸ“ž **Phone number validation** – detects known or suspicious scam numbers. - 🌐 **REST API + Web UI** – interact easily from a browser or programmatically. - πŸ“Š **Session & global statistics** – track analysis metrics over time. - πŸ”’ **Privacy-first design** – no data is stored or sent externally. --- ## βš™οΈ Installation ```bash git clone https://github.com/zvspany/antiscam-pro.git cd antiscam-pro pip install -r requirements.txt ``` If you want to enable **VirusTotal integration**, create `.env` file in the project root: ``` VIRUSTOTAL_API_KEY=your_api_key_here FLASK_SECRET_KEY=change_this_secret ``` Then run the app: ``` python app.py ``` Access the dashboard at: πŸ‘‰ http://127.0.0.1:5000 --- ## πŸ’¬ Usage **You can use AntiScam Pro either from the browser UI or the API endpoints.** --- ## 🧠 How It Works AntiScam Pro applies **multi-layered analysis** for high accuracy and interpretability: **1. Input Validation** – detects whether the user provided a message, URL, or number. **2. Heuristic Filters** – scans for known scam keywords, shorteners, or flagged domains. **3. AI Classification** – BERT model predicts whether text is phishing, spam, or safe. **4. External Intelligence** – optional VirusTotal API check for additional reputation data. **5. Decision Fusion** – merges signals into a single final verdict. This architecture ensures both **speed** and **transparency**, making it suitable for research and production use. --- ## 🧰 Tech Stack - **🐍 Python 3** + **Flask** – lightweight and fast backend - **πŸ€— HuggingFace Transformers (BERT)** – machine learning for text analysis - **🌍 Requests** – robust HTTP handling - **🧩 VirusTotal API** – optional link intelligence - **βš™οΈ Regex** + **heuristic rules** – simple but effective early filtering --- ## πŸͺΆ Design Philosophy AntiScam Pro is built around four core principles: **πŸ•΅οΈβ€β™‚οΈ Transparency** – detection logic is fully open and auditable **⚑ Simplicity** – lightweight, minimal dependencies **πŸ” Privacy** – no user tracking, no telemetry, no cloud sync **🧩 Extensibility** – easy to add models, blacklists, or new APIs --- ## 🀝 Contributing Contributions are welcome! If you’d like to enhance detection logic, optimize performance, or improve UI/UX β€” open a pull request or issue. Let's build a safer digital world, together πŸ’™ --- ## πŸ“œ License This project is released under the **MIT License**. ``` MIT License Copyright (c) 2025 zvspany Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the β€œSoftware”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` --- ## ❀️ Acknowledgements Built by [@zvspany](https://zvspany.github.io/bio/) Inspired by the fight against online scams, phishing, and misinformation. Powered by the open-source community 🌍 --- 🧩 *[AntiScam Pro](https://github.com/zvspany/antiscam-pro) β€” because cybersecurity should be transparent, intelligent, and free.*