Inspiration
We are three CS students: Sehar, Mahira and Midhya. In class we were learning about phishing, encryption, hashing, HTTPS and Wi-Fi security. When we heard about SafeSpace Hacks, we asked: how can we turn what we are studying into something that protects real people?
Around us, people get SMS messages "from the bank" asking for an OTP, friends' WhatsApp accounts get hacked and then ask everyone for money, and people connect to any free Wi-Fi they find. In 2025 alone, Pakistan's FIA received over 250,000 complaints about hacked or fake social media accounts used to ask for money. Most victims are not careless. They just don't know the warning signs. So we built a small project to help ordinary people pause, understand the risk, and take the right next step.
What it does
NetSafe is a free, privacy-first internet safety assistant that runs entirely in the browser. Nothing you type is stored or sent anywhere.
- Check a message: paste an SMS, WhatsApp message or email. NetSafe highlights each warning phrase and explains why it matters and what to do. It detects:
- OTP, password and card requests, and fake fees
- threats, kidnapping and blackmail
- fake BISP and e-challan notices
- WhatsApp code theft and gift card scams
- money requests from a friend's hacked account ("I'm at the hospital, send money to this JazzCash, I can't talk, I'll pay you back")
- Check a link: judges a link by its text only, and never opens it. It flags look-alike names (
g00gle,paypa1), bank names on other websites, and hidden links: a link in an email that showswww.google.combut really goes somewhere else. - Password strength: explains why
Summer2024!is weak and suggests a better passphrase. Checked on your device only. - Wi-Fi risk: rates a network from your answers (open or WPA3, public or private) and says what is reasonable to do on it.
- Overview: collects every check into a prioritised plan and a downloadable report.
- Crypto Lab: real AES-GCM encryption and SHA-256 hashing. Change one character of the encrypted text and decryption is refused.
- Learn: a glossary, and every rule NetSafe uses with its points and an example.
Every result also says what to do if you already clicked, replied or paid. NetSafe never calls anything "100% safe".
How we built it
- Plain HTML, CSS and vanilla JavaScript. No framework, no backend, no build step.
- Separate rule engines for messages, links, passwords and Wi-Fi. Each rule is readable data, and the Learn page shows exactly the rules that run.
- We based the scam patterns on public warnings from FIA, PTA, PK CERT, news reports and international security agencies. We then tested them on hundreds of realistic scam messages and everyday messages, so that normal messages from friends do not cause false alarms.
- The Web Crypto API for AES-GCM and SHA-256.
- A strict security policy, so the page cannot send data anywhere. No third-party code, self-hosted fonts.
- 692 automated logic tests, 15 server tests and 199 real-browser tests, all passing, including accessibility and phone layouts.
- Hosted on Netlify, with GitHub for version control.
Challenges we ran into
- False alarms against missed scams. A real friend saying "I'll send it back tomorrow" was first flagged, while some real scams were missed. We had to collect examples of both and tune the rules carefully.
- Hacked accounts look exactly like the real person: the same number, name and photo. We could only work from the wording, and we are honest that this is a limit.
- Hidden links: copying a link's text loses its real address. We found that copying from an email in a browser keeps the real address, and used that.
- Deployment: our first online version showed "tools are not running" because of missing files. We added a check that names the exact file that failed.
- Explaining things simply: writing OTP, HTTPS and WPA3 in plain words for non-technical people was harder than writing the code.
Accomplishments that we're proud of
- It works fully in the browser, and nothing anyone types ever leaves their device.
- It catches the scams people around us actually receive, including hacked-friend money requests.
- Every warning shows the exact phrase, the reason and the next step, including what to do after a mistake.
- No AI and no black box: every rule is visible to the user.
- More than 900 automated tests pass.
What we learned
- How phishing, look-alike domains, HTTPS, Wi-Fi security, AES-GCM and hashing work in real life, not just in theory.
- How real scams in Pakistan work, from FIA and PTA warnings.
- Being honest about limitations builds more trust than claiming to be perfect.
- Testing against normal messages is as important as testing against scams.
What's next for NetSafe
- "Share to NetSafe" from WhatsApp and SMS, or a browser extension, so people don't need to copy and paste.
- Urdu language support.
- An optional check of website reputation and leaked passwords, only with the user's permission.
- Community scam reports, and checking screenshots and QR codes.
- Guidance on AI voice-clone scams.
Team
Sehar, Mahira and Midhya, CS Students.
Credits and AI assistance
- AI assistance: we used Claude (Anthropic) as a coding and writing assistant for debugging, scam-rule research and tests, the interface design, the README and the demo video (editing, captions and an AI text-to-speech voiceover). We chose the idea and features, made the design decisions, and reviewed and tested everything.
- Fonts: Atkinson Hyperlegible and Bricolage Grotesque (SIL Open Font License).
- Logo: design by our team
- Demo video: AI text-to-speech voice (Kokoro); original background music.
- Scam patterns: public warnings from FIA, PTA, PK CERT, Digital Rights Foundation, Dawn, Express Tribune, Action Fraud, Which?, the US FTC, Bitdefender and Malwarebytes. All examples in the app and video are fictional.
Responsible use
NetSafe is an educational prototype. It is not a replacement for the police, the FIA cybercrime helpline (1991), your bank or emergency services, and it does not guarantee safety. If you have lost money or an account, contact your bank and report it right away.
Built With
- analysis
- css
- cybersecurity
- detection
- development
- html
- internet
- javascript
- netlify
- password
- phishing
- safety
- security
- url
- web