What number is this that took my details for a "security check"? Turning what you disclosed into a Python action plan
A call says it's a security check. You answer a few questions, then a few more, and then the line goes dead. Whatever the number turns out to be, the first job isn't working out what number is this. It's remembering exac
A call says it's a security check. You answer a few questions, then a few more, and then the line goes dead. Whatever the number turns out to be, the first job isn't working out what number is this. It's remembering exactly what you said and deciding what to do about each piece, in the right order. That's a small data problem, and a short Python script handles it well.
Affiliation and AI note: This post is promotional editorial from the website whocallme.co.uk, drafted with AI assistance. The script below was run locally with Python 3.13.5 using only the standard library. The incident in it is invented, the phone number is from a range reserved for fiction, and the script doesn't connect to anything. It isn't advice from a bank, and it can't tell you whether a particular call was genuine.
The source note
The page for 029 2085 8778 lists a Cardiff landline with the allocation hint BT, and it warns that neither detail establishes the caller's current network or location. When it was fetched for this post it showed 17 searches, one user report and a Negative overall rating. Its "first seen: 9 days ago" label is the page's own record, not the date of the report. The report is imported, and its original publication date is unknown.
Filed as Scam/Fraud, it reads in full: "After they collected all my informations for securtiy check, they just cut off the line."
It doesn't say who the caller claimed to be, what was asked or what was given. Nobody has verified it, and caller ID can be spoofed, so the number on screen doesn't prove who rang. What it captures is a common position: the call is over, something was handed over, and you're not sure what matters most.
Why a plan beats a feeling
After a call like that, people tend to fix whatever feels worst, often the most personal detail. But disclosed details carry different risks on different clocks. A card number can be used within minutes. A date of birth on its own is mostly useful later, combined with other facts.
So the script does three things:
- Maps each disclosed item to an area, an urgency and one concrete action.
- Adds combination rules, because name, date of birth and address together are worth more to a fraudster than each alone.
- Turns urgency into a deadline counted from the time of the call, with a
done_atfield for ticking things off.
Anything it doesn't recognise is printed separately. In this kind of record the gaps matter as much as the entries.
The script
"""Turn "what did I say on that call?" into an ordered plan. Stdlib only, synthetic data."""
from dataclasses import dataclass, field, asdict
from datetime import datetime, timedelta, timezone
# item: (urgency 0=now 1=today 2=within 7 days, area, action)
RULES = {
"card_number": (0, "card", "Ring the bank on the number on the card (or 159); block the card."),
"one_time_passcode": (0, "account", "Ring the bank now and ask what the passcode authorised."),
"online_banking_password": (0, "account", "Change it from a device you trust, then tell the bank."),
"mobile_account_pin": (1, "phone", "Ring your own network on its published number; change the PIN."),
"email_address": (1, "follow_up", "Treat messages that mention this call as unverified."),
"date_of_birth": (2, "identity", "Check your credit reports for applications you don't recognise."),
"home_address": (2, "identity", "Watch for post about accounts you didn't open."),
"full_name": (2, "identity", "Low value alone; matters in combination."),
}
COMBOS = [ # together these are worth more than the parts
({"full_name", "date_of_birth", "home_address"}, 2, "identity", "Consider Cifas Protective Registration."),
({"card_number", "card_security_code"}, 0, "card", "Ask the bank to review recent card payments."),
]
BUCKETS = {0: "now", 1: "today", 2: "within 7 days"}
LIMITS = {0: timedelta(minutes=30), 1: timedelta(hours=12), 2: timedelta(days=7)}
@dataclass
class Incident:
received_at: str
number_shown: str
caller_claimed: str
disclosed: list
actions: list = field(default_factory=list)
def plan(incident):
seen = set(incident.disclosed)
steps = [(RULES[i][0], RULES[i][1], i, RULES[i][2]) for i in incident.disclosed if i in RULES]
steps += [(u, a, "+".join(sorted(need)), t) for need, u, a, t in COMBOS if need <= seen]
t0 = datetime.fromisoformat(incident.received_at)
return [{"when": BUCKETS[u], "by": (t0 + LIMITS[u]).isoformat(timespec="minutes"), "area": a,
"because_of": i, "action": t, "done_at": None} for u, a, i, t in sorted(steps)], sorted(seen - RULES.keys())
if __name__ == "__main__":
inc = Incident(datetime(2026, 11, 20, 18, 40, tzinfo=timezone.utc).isoformat(),
"029 2018 0123 (fictional)", "a security check",
["full_name", "date_of_birth", "home_address", "card_number", "email_address", "loyalty_card_number"])
inc.actions, unknown = plan(inc)
current = None
for s in inc.actions:
if s["when"] != current:
current = s["when"]
print(f"[{current}]")
print(f" - ({s['area']}, {s['because_of']}) {s['action']} [by {s['by']}]")
print("Not in the table, decide by hand:", ", ".join(unknown) or "-")
print("open actions in saved record:", sum(a["done_at"] is None for a in asdict(inc)["actions"]))
Running it
Saved as devto_disclosure_plan.py and run with python3 devto_disclosure_plan.py:
[now]
- (card, card_number) Ring the bank on the number on the card (or 159); block the card. [by 2026-11-20T19:10+00:00]
[today]
- (follow_up, email_address) Treat messages that mention this call as unverified. [by 2026-11-21T06:40+00:00]
[within 7 days]
- (identity, date_of_birth) Check your credit reports for applications you don't recognise. [by 2026-11-27T18:40+00:00]
- (identity, date_of_birth+full_name+home_address) Consider Cifas Protective Registration. [by 2026-11-27T18:40+00:00]
- (identity, full_name) Low value alone; matters in combination. [by 2026-11-27T18:40+00:00]
- (identity, home_address) Watch for post about accounts you didn't open. [by 2026-11-27T18:40+00:00]
Not in the table, decide by hand: loyalty_card_number
open actions in saved record: 6
Reading the output
The card goes first. It's the only "now" item in this invented incident. Thirty minutes is arbitrary, but the order isn't: blocking a card is quick and reversible, and the bank can review recent activity while you're on the phone. The action points to the number printed on the card, or to 159 (a short number run by Stop Scams UK to connect callers with their own bank). Stop Scams UK says it covers the vast majority of UK current accounts.
The email address sits in "today". It isn't secret, but a phishing message that mentions the call will sound more believable. The action is to treat follow-ups as unverified, not to change your address.
The identity items wait, but they add up. A name alone is labelled low value. The combination rule fires because all three core details appear, and it points to Cifas Protective Registration. Cifas says this puts a warning flag in its National Fraud Database so member organisations make extra checks on applications in your name. It costs £30 for two years and doesn't affect your credit score. Checking your credit reports covers the other side: whether anything has already been opened.
The unknown item is surfaced. loyalty_card_number isn't in the table, so you decide by hand. It might be harmless, or it might hint at which company the caller pretended to be.
Design notes
- The rule table is data. Adding
"passport_number"means one more line and your own judgement about urgency. - Deadlines count from
received_at, not from when you run the script, so the plan stays honest if you write it up an hour later. - Every action starts with
done_atset toNone. Filling it in gives you a dated record if you need to explain the timeline to your bank. - Combinations use set inclusion (
need <= seen), so the order you list items in doesn't matter.
Limits
The urgency values are my own choices, not an official scale. The table only knows what it lists. It can't tell whether a call was genuine, and some real organisations do run security checks. It also assumes you remember what you said, which after a stressful call isn't a given, so writing the list down straight away matters more than the code.
If you think you've been defrauded, Report Fraud is the national reporting service. Where money or cards are involved, your bank comes first.
Reading the number page
The single report on that page is anonymous and unverified. It doesn't say who holds the number or what they wanted, only that one person felt their details were collected before the line was cut. That's a reason to compare notes, not a conclusion.
When another unfamiliar number calls, you can look up what other UK callers have reported before you answer or ring back. If you've already said too much, write down what you gave, sort it by urgency and work from the top.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.