Threat Detection
Large reads to new networks, access keys used from new countries, buckets made public: findings, mail, suppression rules.
Threat Detection is part of Security Posture. Posture checks how your resources are configured; Threat Detection watches what happens to them and tells you when something looks like an attack: a large read from a database to a network that has never been a client, an access key used from a new country, a bucket made public. It needs no setup and nothing is billed.
Console: Security & identity → Security Posture → Threats (/posture/threats).
A threat finding says what was seen, never more. "A large read to a new address" can be a leaked password, and it can be a new reporting tool. Each finding says why it matters, what to check and what to do, and what the signal cannot see, so you can decide.
What it watches
| Detection | Default severity | What it looks at |
|---|---|---|
| A large read left a database for a network it has not served before | High | Bytes sent by each Managed PostgreSQL database to each client address, every minute. Raised when one public client takes more in an hour than any client usually does and its network is not a regular client, or a regular client takes ten times its own largest hour |
| A large download from a bucket to an address that has not read it before | High | Bytes sent from each bucket to each client address at the storage gateway, every minute, with or without a key |
| An access key was used from a new country or network | High | Every call made with an access key: the address, its country and its network, once per key, address and day |
| A bucket was made readable by anyone on the internet | High | Changes to a bucket's policy and Block Public Access settings in your audit log, decided with the same check the storage gateway applies to anonymous requests |
| A credential issued to a machine or job was used from somewhere else | Critical | The short-lived keys the platform gives instance roles, function roles, cloud shells and jobs on hosted runners, checked against the addresses that workload uses (the instance's own address, its Elastic IPs and NAT gateway, the platform's hosts) |
| The secret of an active access key was found in a git push | Critical | Secret scanning of every push to a repository on the platform, matched to the access keys that are active. High instead of critical when the push was refused |
| A database was opened to the internet | High | Switching public access on for a database, in your audit log |
| Someone is guessing passwords on a database | Medium | Refused logins in the database server's log, per client address: 20 from one address in ten minutes, or 100 across addresses. Critical when the database then sent that address at least 1 MiB more in a minute than its refused logins cost, which means a guess probably worked |
| An access key or sign-in came from a Tor exit or a listed address | High | Every access-key call and console sign-in, against public lists of Tor exits and of networks known for attacks (Spamhaus DROP, FireHOL level 1, abuse.ch Feodo Tracker) |
| One principal read many secrets at once | High | Reads of secret values in your audit log: at least 10 different secrets in ten minutes, and three times the most that principal read in any ten minutes of the last 30 days |
| Threat Detection was weakened | Medium | A detection turned off, or a suppression rule that silences a detection on a whole kind of resource. High when the detection is high or critical. This one cannot be turned off or suppressed |
A finding becomes critical when one client read at least a quarter of a database's or bucket's size within 24 hours, or when a high finding's client is in a country that is new for your organization.
The volume detections learn each database and bucket for 7 days first. During that time two rules that need no history apply: a quarter of its size read by one client in a day is high, and more than 1 GiB to one client in an hour is medium. A network counts as a regular client once it has had traffic on three different days in the last 35.
Addresses that belong to your own organization (your instances, Elastic IPs and database nodes), private addresses and the platform's own services are never judged. Another customer's machine on the platform is a public address like any other.
Threat Detection → Detections (/posture/threats/detections) lists every detection with its
severity, how many threats it found in the last 30 days, when it last found something, and whether
it runs for your organization. The count is a link to those threats; a detection that found
nothing says None seen. Choose a detection to read why it matters, what it cannot see and what
to do when it finds something, with the threats it found underneath. dcloud posture threats detections returns the same list, with the counts under stats.
What data it uses
Metadata only. Threat Detection reads addresses, ports, byte and request counts, times, the first few API paths an access key called, and the change in your audit log. For databases it also reads the server log's refused-login lines: the role name that was tried and the client's address (the server never logs a password). For leaked keys it compares the hash that secret scanning stores with the hash of each active key; neither side holds the secret. It never reads rows, objects, object names or query values, and never looks inside your machines.
Country and network names come from the DB-IP Lite databases (CC BY 4.0), downloaded once a month and looked up on our side. The address lists are downloaded once a day from their publishers and matched on our side too. No address is ever sent to an outside service. Nothing seen in one organization is used for another: every baseline is your own. When a key of yours turns up in a push to another organization's repository, your finding says so without naming that repository.
Client addresses are personal data, so they are kept no longer than the detection needs them:
| What | Kept for |
|---|---|
| Bytes per client per minute | 14 days |
| Refused database logins per client per minute | 14 days |
| Bytes per client per day | 35 days |
| Countries and networks a key or org has used | 90 days |
| Threat findings, their occurrences and timeline | 15 months |
A finding keeps the evidence of its latest occurrence (address, network, country, volumes) for as long as the finding is kept.
Threat findings
One finding per detection, resource and subject: the client's network for the volume detections, the key and the new country or network for access keys. An attacker who changes address within one network does not make fifty findings. A repeat while the finding is open adds an occurrence, updates the evidence and raises the severity if it is higher.
The finding page shows:
- what happened in one sentence, and who caused it when the audit log names someone;
- What was seen: the evidence with units (a link to the raw values is underneath);
- for the volume detections, a chart of the bytes per minute to that address around the event;
- Why it matters, What to do (in order) and What we cannot see;
- the occurrences and the timeline (opened, severity raised, mail sent, archived, reopened).
The list (/posture/threats) filters by state, severity, detection and when a finding was last
seen, and searches the resource, the network or key and the principal, across every finding of the
organization. GET /posture/api/threats takes the same as state, severity, detection, seen
(24h, 7d, 30d), q, sort, limit and offset, and returns total with the page.
Reading threat findings is recorded in your audit log every time, because the evidence is a map of
an attack: posture:ListThreatFindings and posture:GetThreatFinding are sensitive actions and are
not part of the read-only policies. The counts by severity on the Security Posture overview are an
ordinary read (posture:GetSummary). Threat findings do not change the posture score: the score
measures what you configure, and an attempt by someone else is not your configuration.
Archive
When you have dealt with a finding, Archive it with a reason: Resolved (it was real and is dealt with), Expected (a tool, migration or person you know) or False positive, and an optional note. A finding with no new occurrence for 30 days is archived on its own (reason "quiet").
If the same thing happens again, the same finding opens again, with a new mail and its history intact. Archiving is not a way to silence a detection; that is what suppression rules are for.
Suppression rules
A suppression rule says "this is expected" for one detection and at least one match: a resource, an address range, a network (AS number), a country, an access key or a principal. All matches of a rule must hold. Create one with Create suppression rule on a finding: it is prefilled with the detection, the resource and the network, country or key the finding saw.
- A rule needs a reason and ends after at most 365 days (90 days for a detection whose default severity is critical). Rules cannot be edited: end one and create another, so your audit log shows each version.
- Nothing disappears. A matching occurrence is still recorded; the finding is listed under Suppressed, opens nothing and sends no mail. The rules page shows how often each rule matched and when it last did.
- End rule stops it at once; the next matching occurrence opens the finding. Ended rules stay listed for 15 months.
- Reading the rules is a sensitive, audited action (
posture:ListSuppressionRules): they tell an attacker where nobody is looking.
- High and critical findings are mailed at once to the owners and admins of the organization, and to the members added under Threat Detection → Settings: when a finding opens, when it opens again after being archived (at most once a day per finding), and when its severity rises. Never for each occurrence. At most 10 such mails per organization and hour; anything beyond is in one "more findings" mail.
- Medium and low findings are in a daily digest at 08:00 (Europe/Berlin).
- The mail names the detection, the resource, the time, the severity and the coarse subject: the country, the network's name and the volume rounded ("about 4,2 GiB to a network in Brazil"). It never contains a full address, an access key id (at most its last four characters) or a policy document. The details are one click away, behind the audited read.
Open threats are also listed in the Advisor, critical and high first, each linking to its page here.
Settings
Threat Detection → Settings (/posture/threats/settings):
- Also mailed: members of the organization who should get the mail besides owners and admins, for example the person on call. Only members can be added; someone who leaves the organization stops getting the mail without anyone changing the setting.
- Detections: turn a single detection off. A detection that is off records nothing for your organization. Turning one off opens a Threat Detection was weakened finding, mailed to everyone above, so that nobody can switch detection off unnoticed. That detection itself cannot be turned off or suppressed. A suppression rule that silences a detection on a whole kind of resource (no address, network, country, key or principal named) opens the same finding.
Reading the settings needs posture:GetThreatSettings; changing them needs
posture:UpdateThreatSettings, which is recorded in the audit log.
API, CLI and MCP
| What | API | CLI |
|---|---|---|
| Detections | GET /posture/api/threats/detections |
dcloud posture threats detections |
| Open counts by severity | GET /posture/api/threats/summary |
dcloud posture threats summary |
| Threat findings | GET /posture/api/threats?state=open&severity=critical |
dcloud posture threats list |
| One finding | GET /posture/api/threats/{id} |
dcloud posture threats get |
| Archive / open again | POST /posture/api/threats/{id}/archive, …/unarchive |
dcloud posture threats archive, unarchive |
| Suppression rules | GET /posture/api/threats/suppressions |
dcloud posture suppressions list |
| Create / end a rule | POST /posture/api/threats/suppressions, DELETE …/{id} |
dcloud posture suppressions create, delete |
| Settings | GET /posture/api/threats/settings |
dcloud posture threat-settings get |
| Change the settings | PUT /posture/api/threats/settings |
dcloud posture threat-settings update |
Events on your default event bus, source ews.posture: Threat Finding Opened (also when a
finding opens again) and Threat Finding Archived, with the finding, detection, severity and
resource, never the evidence. A rule with an HTTP target sends them to your own alerting.
Not yet
- Buttons that act for you on the finding page (deactivate the key, turn Block Public Access back on). Today the steps say where to do it.
- Databases in a cluster: their clients arrive through the cluster's load balancer, so a read shows as that address and only the volume through the balancer is judged.
- Refused logins through the connection pooler: the pooler's own refusals are not counted yet.
- Keys published outside the platform (public GitHub repositories, paste sites).
- More detections: sign-ins from new places, IAM changes that widen access, crypto mining.