r/AskProgramming • u/bossdom06 • Sep 27 '26
need help regarding data related to a project...
hey guys so i basically hardcoded an entire project, to keep it short, it checks if a url,qr code, file is valid/safe/risky. I found a good dataset for the url part on kaggle, but im unable to find real time data of a risky qr code or a risky file. What can be done here?
(SRY IF NOT RELATED TO THIS SUB, DIDNT KNOW WHERE ELSE TO ASK)
0
Upvotes
4
u/ALargeRubberDuck Sep 27 '26
What’s the danger you’re looking for? You might look into finding a list of hashes of malicious files and checking the file against it. For QR codes, can you just translate them to urls and apply the same logic as the urls get?
1
u/PLBjt Sep 27 '26
QR codes don't really need their own dataset, the payload is the thing that's risky. Decode it and route by type: URLs go through your existing URL model, but also flag the non-URL payloads like wifi configs, sms: and tel: links, since those skip your classifier entirely. For files there's the EMBER dataset (PE feature vectors labeled benign/malicious) if you want to train something, or you can just hash-match against a public malware hash list. Quick check on the URL side: if your Kaggle set has dates, test on the newest slice instead of a random split, phishing domains churn so fast that a random split makes accuracy look way better than it'll be live. Tradeoff is hash lookups almost never false-positive but miss anything new, while a model catches novel stuff and you'll spend time tuning a threshold so it doesn't scream at every random zip.