Repository navigation
Red Flags
Every code sw.py 0.2.2 can emit, taken from the source. The weight is what the code adds to the score. The label is the text the checker prints.
Each flag counts once per message, however many times it matches. Matching ignores case, except wrong-number, which needs a capitalised name.
| Code | Weight | Label |
|---|---|---|
gift-card |
3 | asks for gift cards |
crypto-pay |
3 | asks for crypto payment or a crypto ATM |
wire-safe |
3 | wire or 'safe account' transfer |
share-code |
3 | asks for a one-time code or password |
remote |
3 | asks to install remote-access software (AnyDesk, TeamViewer, Quick Assist and others) |
secrecy |
3 | asks for secrecy |
rental-combo |
3 | absent owner plus pay before viewing (added when owner-away and sight-unseen both match) |
arrest |
2 | threat of arrest, warrant or legal action |
urgent |
2 | urgency or deadline |
account-lock |
2 | account locked, suspended or unusual activity |
unpaid-fee |
2 | small unpaid toll, fee or delivery charge |
prize |
2 | prize, lottery, grant or refund you didn't expect |
overpay |
2 | overpayment or send-back-the-difference |
p2p-pay |
2 | Zelle, Venmo or Cash App to a stranger |
call-number |
2 | tells you to call a number in the message |
invoice |
2 | invoice or renewal you may not recognise |
new-number |
2 | family member with a 'new number' |
job-easy |
2 | easy job or task earnings |
investment |
2 | guaranteed or high investment returns |
owner-away |
2 | owner abroad or can't show the place |
sight-unseen |
2 | pay before viewing, keys by mail |
wrong-number |
1 | friendly 'wrong number' opener |
generic-greeting |
1 | generic greeting |
click |
1 | asks you to click or tap a link |
reply-y |
1 | asks you to reply Y or a keyword |
personal-data |
1 | asks for SSN, date of birth or bank details |
qr |
1 | QR code to scan |
emotion |
1 | emergency involving a relative |
| Code | Meaning |
|---|---|
opt-out |
"Reply STOP", "Text STOP", "STOP=END" or "STOP to unsubscribe". Real bulk senders include it; scammers copy it. It does not lower the score. |
| Code | Weight | What it means |
|---|---|---|
at-trick |
3 | an @ in the address: the real host is the part after it |
raw-ip |
3 | the link goes to a raw IP address |
punycode |
3 |
xn-- host, which can hide lookalike characters |
unicode-host |
3 | non-ASCII characters in the host |
brand-mismatch |
3 | the host names a known brand or agency but is not one of its domains |
free-host |
2 | free hosting (netlify.app, vercel.app, github.io, pages.dev and others): anyone can make the address in minutes |
shortener |
2 | link shortener (bit.ly, tinyurl.com, t.co and others) hides the destination |
risky-tld |
1 | a cheap TLD often used in scams (.top, .xyz, .info and others); not counted on free hosts |
deep-subdomain |
1 | four or more dots in the host |
many-hyphens |
1 | three or more hyphens in the host |
tracking-id |
1 | a per-person ID in the query (id, uid, token, ref, email and similar) or a short code path; opening it confirms you are a live target |
no-https |
1 | plain http link |
odd-port |
1 | a port other than 80 or 443 |
brand-mismatch knows about 40 names, among them PayPal, Amazon, Apple, Microsoft, Netflix, Google, the big US banks, USPS, UPS, FedEx, DHL, the IRS and SSA, Coinbase, Venmo, Zelle, Cash App, DocuSign, E-ZPass and TxTag. A brand it does not list is not checked.
In scan, each link's score counts up to 6 toward the total.
These nine codes make the risk high on their own, whatever the score:
gift-card, crypto-pay, wire-safe, share-code, remote, brand-mismatch, at-trick, punycode, unicode-host
They match the rule on How verdicts are reached: no real bank, agency or company asks for these. secrecy and raw-ip weigh 3 but are not hard flags.
- The patterns are English only.
- A flag is a regular expression match, so wording outside the pattern slips past (see the rental example on Checker commands).
- No flag means nothing was matched, not that the message is safe.
This wiki describes scamwright v0.2.2 and was last updated on 2026-12-05. MIT licensed. Report problems in the issues.
Using it
- Getting started
- How verdicts are reached
- Checker commands
- Red flags
- Recovery and reporting
- Privacy
- FAQ
Contributing
Elsewhere