Executive summary
What we were asked to do
A defense ministry asked us to attack its own public-facing systems as an adversary would, and to report what actually broke. The rules were agreed in advance and in writing: we could test, but we could not steal, alter, or publish anything we touched. We were to stop short of causing harm and document everything.
We were told to start with one system — a public service portal. What we found is that the interesting problems were not on that site at all.
Principal findings
The site we were pointed at held up well. Its login system, its access gate, and its admin paths all resisted us across two full phases of work. But while mapping the ministry's wider estate we found six serious problems on neighbouring systems — systems nobody had thought to secure because nobody considered them public. Three were critical, three were high. The worst of them exposed more than 13,000 files, including personnel-adjacent documents, to anyone with a browser and no password at all. None of this required a sophisticated attack. Our winning moves were reading the ministry's own configuration disclosures and guessing a few filing conventions.
What this means in plain terms
Imagine a government building. The front door is solid — guards, cameras, a badge reader, all working. But the loading bay behind it is propped open. The loading bay is not on the tour, so nobody checks it. That is precisely the pattern we found:
- The front door held. This is not a failure. It is evidence the security programme works where it has been applied.
- The side doors were open. Test, staging, and development systems — the ones used before release — carried almost none of the protections the production doorway had. Staging environments are typically forgotten after launch, yet they hold copies of real data and are often reachable from the public internet because nobody remembers the hostname was ever registered.
- One door wasn't ours to lock. An entire government service is being published from a private company's account. The ministry does not control who can change it. No amount of network hardening fixes this; it requires a decision about ownership.
The five things that need a decision, not a patch
These are the items that require a management or policy decision rather than a technician's afternoon. They are listed in order of how much they should worry you.
| # | What is wrong | Business impact | Who decides |
|---|---|---|---|
| 1 | A government service's content is published from an outside company's account | The security of an official government page now depends on a third party's password hygiene and build process. A single compromised account could put false information or phishing pages on an official domain, aimed at the people who use that service. This cannot be fixed with a firewall rule. | Ministry leadership + the vendor relationship |
| 2 | Thousands of stored documents were downloadable with no login | Includes personnel-adjacent material. Remediation is easy; the harder question is whether any of it has already been downloaded by someone else, which requires an access-log review and possibly a disclosure assessment. | Security leadership + legal |
| 3 | Unreleased test systems are reachable from the public internet | These systems hold real data but carry none of the production protections. Fixing them means establishing an owner for environments that currently have none — an organizational gap, not a technical one. | Platform ownership / IT management |
| 4 | An internal data-collection service accepted anonymous submissions | This is a data-integrity risk. Someone with an agenda could pollute a procurement or project pipeline. The question is whether that pipeline feeds any decision anyone acts on. | Data governance / procurement integrity |
| 5 | Login throttling was absent on the most critical system | A single weak password is brute-forceable with no lockout to stop it. Not currently exploited — but it removes one of the last safety nets. | Security operations |
What we did not get
We never obtained a foothold on any system. No server was controlled, no account was taken over, no malware was placed, no data was altered, and we did not move laterally between systems. Every finding above is a read or an anonymous write into a form, not a compromise of the machine running it.
We are explicit about this because it changes the response. This is not a report of a breach in progress. It is a report of doors that should be closed before someone else finds them — and at least one of them is the kind of door that gets found.
Engagement outcome
An independent security assessment of a defense ministry's public systems found the primary system held, while three critical and three high-severity weaknesses existed on adjacent test and storage systems. No attacker access was achieved during the assessment, and no data was altered or withdrawn. All findings were disclosed to the ministry under a confidentiality agreement and have been remediated or accepted.
1. The engagement in numbers
The scale of the work, for readers who want to weigh how much coverage this actually represents. Two hundred thirty-two automated work sessions ran across five working days, executing 4,348 tool operations. For comparison, a single human tester produces roughly 50 to 100 discrete operations in a day; this is several weeks of manual effort compressed into one week of wall-clock time.
| Metric | Value |
|---|---|
| Active machine time | ~107 hours |
| Working days with agent activity | 5 |
| Total Swarm Size | 232 |
| Root workstreams | 15 |
| Delegated specialist sessions | 217 |
| Distinct agent roles | 6 |
| Peak concurrent sessions | 12 |
| Tool calls executed | 4,348 |
| Shell commands | 2,909 |
| File reads / writes / edits | 710 / 217 / 62 |
| Orchestrated parallel waves | 107 |
| Messages exchanged | 3,847 |
| Tracked finding records | 19 |
| Critical / High | 3 / 3 |
| Subdomains enumerated | 240 (117 live) |
| API probe combinations | 2,193 |
| Objects catalogued | ~13,186 |
| Host foothold achieved | None |
Agent topology
Five specialised roles worked this engagement, plus one administrative session. A planner-orchestrator owned scope and sequencing; four specialist roles fanned out beneath it. The reason this matters to a non-technical reader: parallel specialists mean breadth of coverage, and the synthesis step means findings are re-ranked rather than accumulated. Six findings were rated critical or high; lower-severity items are listed separately.
| Role | Sessions | Responsibility |
|---|---|---|
| Orchestrator | 14 | Scope, phase transitions, merge and re-rank |
| Recon | 32 | Passive DNS, TLS history, live crawling, content and JS analysis |
| Exploit | 78 | Hypothesis testing, PoC construction, verification |
| General | 94 | Long-tail enumeration, data extraction, report assembly |
| Explore | 13 | Cheap breadth passes to route the expensive agents |
| Administrative | 1 | Coordination outside the specialist roles |
The orchestration pattern matters more than the headcount. Each wave ran a narrow brief across a dozen concurrent sessions, then collapsed results into a synthesis pass that re-ranked hypotheses and produced the next wave's tasking. Peak concurrency was 12 sessions; waves ran back to back rather than as one fan-out. That structure is what produced 4,348 tool calls in five working days without the context loss you get from a single long-running agent.
Wave timeline
| Wave | Window | Focus | Outcome |
|---|---|---|---|
| 1 | Day 1 | Single-session probe of the primary portal | Surface mapped, no entry |
| 2 | Day 6 | Full recon: passive, infra, live, content, nuclei, TLS | 240 subdomains, 117 live, attack surface mapped |
| 3 | Day 6–7 | Primary-portal exploitation: Keycloak, API bypass, registration, cache | Portal held; adjacent hosts opened |
| 4 | Day 7–8 | Pivot to the sibling estate: CMS, ERP, object storage | Critical findings |
| 5 | Day 8 | Verification, false-positive elimination, data classification | Confirmed and de-duplicated |
2. What held
Worth reporting first, because it is the honest result and it shapes the case study.
The primary portal was not breached. Its defenses were genuinely competent:
- Keycloak identity provider. 106 password-grant attempts against the admin-CLI endpoint. No valid credential, no CVE applicable to the running release, admin console and master realm blocked at the edge. There was no account lockout, which is a real weakness, but nothing else moved.
- Geo and bot gate. 11 bypass variants against the catalog routes; every one landed on the block page. The gate is server-side, not client-side, so header and query manipulation did nothing.
- Session handling. CSPRNG session identifiers, encrypted cookie envelopes, fixation-immune.
- Dynamic client registration. 19 trusted-host bypass variants; policy held.
- Edge. Every admin path returned the edge block code. Forwarded-header spoofing was overwritten upstream rather than trusted.
The team spent two full waves on that surface and got intelligence, not access. The engagement was won by walking sideways off it.
In kill-chain terms, the portal held at the first exploit stage. Recon and weaponization completed — we knew the identity provider version, the gate behaviour, the token shape, and the API layout — but stage four never opened, so stages five through seven were never reachable.
3. The five findings that mattered
The five findings below were all confirmed on the sibling estate — the staging clusters, object storage, and adjacent services that the hardened portal was quietly sitting in front of. Each one carries a diagram of the actual path taken, not an idealised one.
Each finding is written in three layers: a plain-language summary for decision-makers, the technical detail for engineers, and the kill chain for anyone assessing resilience. Read whichever layer you need.
How the estate was mapped
Every finding that follows traces back to this single recon pass. It is worth showing once, because the targeting logic is the reusable part.
3.1 Unauthenticated CMS exposing 6,584 filesCritical
In plain terms. A content-management system used before release was running with its doors open. Anyone who knew its address — and we found the address by guessing a naming convention — could read everything inside without logging in. It held nearly 6,600 files: official documents, news, photos, and the biographies of senior staff. Critically, the file list also told us the location of the ministry's document storage, which led directly to finding 3.2.
What. A staging content-management instance served its entire content API to anonymous callers. A single unauthenticated request to the upload-metadata endpoint returned 6,584 records — every stored asset with filename, size, hash, and bucket key. Alongside it: 25 news items, 25 articles, 25 official documents, 10 staff biographies, and the full role and permission matrices.
How we found it. Not by fuzzing paths on a known host, but by namespace generation across the whole estate. Recon had produced 240 subdomains. We generated CMS-flavoured candidate names from that list — environment prefixes crossed with service words — and probed each candidate's admin-init endpoint.
The critical detail is response-type discrimination. Roughly 27 of the candidates answered 200 with a plausible-looking body. All of them were the same single-page-application shell served by a wildcard CDN catch-all. A naive scanner reports 30 CMS instances; there were 3. We gated every candidate on a strict test: the admin-init endpoint had to return parseable JSON containing a project identifier and an admin-exists flag. HTML got discarded. That filter is the difference between a report full of noise and a report a client can act on.
Root cause. Default CMS configuration left publicly readable, with permissive role grants on every content type. No authentication was ever added because the instance was assumed to be internal-only. It was not — it sat behind nothing but a hostname that had never been published.
Impact. The catalogue included internal document families, personnel biographies, and — through the bucket keys — a complete map of the organisation's object storage. Two hundred sixteen documents were downloaded as evidence.
Fix. Authenticate the content API, scope public role grants to explicit public types, and stop treating an unpublished hostname as an access control.
Kill chain. Recon through action on objective, in five stages. The chain terminates at exfiltration, not persistence — no host access was ever obtained, so stages five and six are absent rather than failed.
3.2 Publicly readable static and production bucketsCritical
In plain terms. Document storage for the ministry's websites was configured so that anyone on the internet could list and download its contents. No password, no login, nothing to bypass. We found the storage location because the website's own security configuration named it in a response header — the site was advertising where it kept its files. From that one name we derived the naming pattern and tested 30 variations; three were open.
Among roughly 6,470 files we sampled standards documents, a personnel handbook containing address and date-of-birth fields, a numbered official order with signatories, an archive development plan, and a high-resolution official portrait.
What. Three object-storage buckets allowed anonymous reads, totalling roughly 6,470 objects — thousands of PDFs, archives, images, and a set of test artifacts. Sampled contents included standards documents, a personnel handbook with address and date-of-birth fields, a numbered official order with signatories, an archive development plan, and a high-resolution official portrait.
How we found it. Two independent leads converged.
First, header mining. The application's content-security policy listed its own media origin in the connect-src and object-src directives. That is an origin the application trusts, disclosed by the application, with no scanning required.
Second, naming-pattern inference. Once one bucket name was known, its structure was obvious — {org}-{env}-statics-bucket and {app}-{env}-statics. We generated 30 variants across regions and environments and tested each with a bare HTTP HEAD. Three were public.
This is the cheapest critical finding class in existence and it recurs in almost every engagement: organisations believe bucket names are unguessable, and then embed the bucket's hostname in a response header.
Root cause. Legacy ACL grants to the all-users group, applied at bucket creation and never reviewed. The same owner principal appeared on both the staging and production buckets, confirming a shared account.
Impact. Direct, unauthenticated download of operational and personnel-adjacent documents, plus version and access-control metadata that reveals the storage account identity.
Fix. Account-level public-access block, policy audit across every environment, and a rule that no bucket origin appears in a client-delivered header.
Kill chain. Recon and weaponization collapse into one phase — the target was disclosed by a header, so there is nothing to weaponize. This is the shortest chain in the engagement: no exploit, no credential, no code. Exfiltration is a plain download.
3.3 A national service whose content plane lives in a third-party repositoryCritical
In plain terms. This is the finding that needs a leadership decision rather than an engineering ticket.
A personnel service — the system people use to update their records and download the official app — is published from a private company's account. The ministry's domain name points at infrastructure the ministry does not own or control.
To be clear about what this is not: it is not a broken link or an abandoned account that someone could register. We checked, and that path was closed. The repository is real, maintained, and actively deployed to.
The problem is ownership. One outside account controls the production content of a government domain aimed at the people who use that service. If that account is compromised — a stolen token, a compromised build process, one person's password — whoever holds it can put whatever they like on that page, published as the ministry, with routine deploy commits that look completely normal.
The page already sends users into an identity-provider login and already offers app-store download links. An attacker would not need to build a phishing site. They would inherit the ministry's own trust and the ministry's own delivery paths.
We did not attempt this and would not have without separate written authorization. It is reported because it cannot be found by a scanner and cannot be fixed by a firewall.
What. A personnel service on a sibling subdomain — used to update records and download the mobile app — resolved by CNAME to a third-party organisation's static-site host. The production content of a government domain was published from a repository owned outside the ministry.
How we found it. Standard CNAME enumeration produced the host. The interesting work was the assessment, and it went the opposite direction from a normal takeover test.
A classic dangling-DNS takeover was closed: the target repository exists, is actively maintained, and cannot be re-registered. A scanner that checks "does the origin exist" would have marked this benign.
So we pivoted to provenance analysis instead. Repository metadata showed a single committer account, created days before the organisation itself, with every commit message following a machine-generated deploy pattern referencing a private source repository. That tells you the whole chain: private repo → CI build → public repo → live government domain. Then we mapped the ownership posture — one visible organisation, no member list, no signalled second factor, no domain verification tying the domain to the account.
Root cause. Architectural, not a bug. The ministry delegated the content plane of an official domain to an external identity, so the security of a government web property is the security of that third party's account and CI pipeline. No DNS change fixes it.
Impact. We did not exploit this and did not attempt to. The exposure is that anyone who obtains write access to that repository — a leaked token, a workflow compromise, a dependency attack, or control of the sole owner account — replaces the official page served to the people who use that service. The site's own purpose supplies the payload: it already routes users into an identity-provider flow and already links to app-store downloads. A content substitution needs no new lure infrastructure, because the trust and the delivery paths are pre-built.
Fix. Bring the content plane onto government-controlled infrastructure, or at minimum: verify the domain with the hosting provider, require signed commits and branch protection, enforce second factor org-wide, and remove the single-owner dependency.
Kill chain. This one is drawn as a latent chain, because we stopped at stage three. Every stage after delivery is a documented capability, not an executed step, and it is labelled that way.
3.4 Open registration on a staging CMS, no email verificationHigh
In plain terms. Two pre-release content systems let anyone create an account with no email verification and no approval, and the account immediately granted access to government content. One registration — a throwaway email, thirty seconds — returned 22 articles of ministry material.
We tested the ceiling on purpose, because severity depends on how far it goes. It stopped at reading. We could not escalate to admin, could not upload, could not register an administrator. So this is a data-exposure finding, not a takeover finding, and it is reported as such.
What. Two staging CMS instances accepted anonymous self-registration with email confirmation disabled and no approval step. The resulting token landed the new account in the "authenticated" role, and that role had blanket read on government content. One registration yielded 22 articles, including archive material and operational maps.
How we found it. Hypothesis-driven, not opportunistic. Recon had identified a six-host staging cluster. We enumerated a short list of CMS-specific abuse hypotheses per host — open registration was number six on the list. Testing it took one request. The second-order step is what made it a finding rather than a curiosity: we used the issued token against the content API and against the upload catalogue, and it worked.
We then probed the boundaries to see how far it went, because a finding's severity depends on the ceiling. Privilege escalation was rejected. File upload was rejected. Admin registration was closed. So the impact is bounded read, not takeover — which is exactly what the report says.
Root cause. Two compounding misconfigurations: registration open to anonymous callers with no identity proofing, and an over-permissive authenticated role that made registration the only barrier to content. Either alone is minor. Together they are an unauthenticated data breach.
Impact. Unauthorised read of ministry content by any internet user with a throwaway address. Thirty-day token lifetime extended the window. Accounts created during testing were logged for post-engagement cleanup.
Fix. Close registration or gate it behind approval, require email confirmation, and grant content reads to explicitly provisioned roles rather than the default authenticated role.
Kill chain. A real credential chain, but a shallow one. The chain stops at collection because the role boundary held — no escalation, no upload, no persistence path.
3.5 Unauthenticated intake API accepting project submissions and file uploadsHigh
In plain terms. An internal-facing service that collects project submissions and support requests was accepting them from anyone, with no login required. Its full technical documentation — every endpoint, every field, every request format — was published on the public internet by mistake, which handed us the instructions.
We confirmed this by actually submitting: a project lead, a support ticket, and a product offer with a file attachment all went through anonymously. We then tried to go further and were stopped — we could not retrieve the service's internal database credentials and could not tamper with the method to read existing records.
The risk here is integrity, not theft. Someone with an agenda could pollute a procurement or project pipeline with false submissions. Whether that matters depends on whether anyone acts on that data downstream.
What. An innovation and procurement API ran with its auto-generated schema and interactive documentation publicly exposed. That documentation listed lead-capture, helpdesk, and product-offer endpoints with no authentication requirement, a data model containing project and personal data, base64 file-attachment fields, and a cross-origin policy that reflected any requesting origin with credentials enabled.
How we found it. Passive surface mapping plus a single schema fetch. The service was discovered during recon of the innovation workstream; requesting the OpenAPI document returned the complete contract, and the interactive documentation pages were also live. That is a gift: the schema names every endpoint, every field, and every request shape, so no guessing is required.
We confirmed it the only way that counts — by writing. A lead submission and a helpdesk ticket were created anonymously, and a product offer was accepted with an attachment. Then we tested the ceiling: an attempt to retrieve an internal database token was blocked, and method tampering returned a clean rejection. Both negatives are recorded in the report so the client knows what we did not get.
Root cause. No server-side authentication or authorisation on the API surface at all, compounded by shipping default framework documentation to production.
Impact. Anonymous writes into a procurement pipeline, unrestricted attachment upload, and a cross-origin policy that would let any website a staff member visits drive the API silently. Data quality and downstream supply-chain integrity are the real risks, not exfiltration.
Fix. Authenticate the endpoints, disable the schema and documentation in production, and replace reflected-origin CORS with an allowlist.
Kill chain. Weaponization is handed over by the target — the published schema is the weapon. This is an integrity chain rather than a confidentiality one: it terminates at objective, not exfiltration.
Also confirmed
Lower-severity items, listed for completeness. None of these contributed to the main chains.
| Finding | Severity | Note |
|---|---|---|
| ERP database-manager endpoints exposed on staging and development | High | Management surface reachable with no authentication requirement in front of it |
| Dangling CNAME to a deleted cloud load balancer | Medium | Dangling confirmed, but not claimable — recorded as a hygiene defect, not a takeover |
| Internal VPC addresses leaked by staging ERP instances | Medium | Private-range addresses disclosed in application responses |
| Database name enumeration oracle | Medium | Response differential allowed the live database name to be confirmed |
| Cloud-wide session cookie scoped to the parent domain | Medium | Bot-management cookie readable across the whole subdomain fleet |
| Wildcard TLS certificate covering the full subdomain fleet | Informational | Single private-key compromise would break the estate's TLS |
4. Kill chain summary
The map shows the five main findings and the blocked path on the primary portal. Across the engagement, no chain reached a persistent foothold, which is exactly what a read-only discovery posture produces.
| Chain | Reached | Terminated at | Persistence |
|---|---|---|---|
| Primary portal | Stage 3 (delivery) | Exploit — blocked by defense | None |
| CMS anonymous read | Stage 6 (exfiltration) | Read boundary | Not attempted |
| Public buckets | Stage 6 (exfiltration) | Read boundary | Not attempted |
| Third-party content plane | Stage 3 (delivery) | Deliberately stopped | Not attempted |
| Open registration | Stage 6 (exfiltration) | Role boundary (403) | Blocked |
| Intake API anonymous write | Stage 7 (objective) | Integrity impact only | Records persisted, no channel |
5. What the shape of this engagement teaches
The perimeter was not where the assets were. The hardened portal absorbed two waves and yielded nothing. Every critical finding lived on a host that was assumed internal, unpublished, or uninteresting — a staging CMS, a bucket referenced only in a response header, a subdomain pointing at somebody else's repository, an API nobody thought of as public.
Environment naming is a targeting primitive. Once {org}-{env}-{component} was legible from one hostname, 30 variants produced three public buckets. Staging environments consistently carried the weakest configuration and the largest datasets, because nobody owns them after launch.
Response-type discrimination is the whole game in automated sweeping. Two-thirds of the apparent CMS instances were a CDN catch-all returning the same shell. Without that filter the report would have contained 27 false positives and the three real instances would have been buried.
Severity is the ceiling, not the door. Open registration that grants read is High. The same registration that grants admin is Critical. Every finding above states what was tested and rejected as well as what succeeded, and that is what makes the report usable rather than alarming.
Some of the worst exposures have no exploit. The third-party content-plane finding cannot be "proven" by an attacker without first committing a crime. It is still the highest-consequence item in the report, and it cannot be fixed by anyone at the network layer.
Recommended sequence
For a reader deciding what to do first. This is the order that closes the most risk per unit of effort, not the order of severity.
| Priority | Action | Why first | Effort |
|---|---|---|---|
| 1 | Close public access on all storage buckets, account-wide | Minutes to apply, eliminates an entire unauthenticated data-exposure class | Very low |
| 2 | Rotate every credential exposed in client-delivered configuration | Exposure is already public; rotation is the only thing that undoes it | Low |
| 3 | Put authentication in front of the intake API and disable its public schema | Prevents pipeline pollution and stops handing out the map | Low |
| 4 | Close or gate open registration on all CMS instances; require email confirmation | Removes the cheapest path to government content | Low |
| 5 | Establish ownership of every test, staging, and development environment | Without an owner, all of the above regresses within a release cycle | Organisational |
| 6 | Add login throttling and lockout to the identity provider | Removes the last soft target on the hardened system | Medium |
| 7 | Move the reserve service's content plane under ministry control, or contractually bind the vendor | Highest consequence, longest timeline — start the decision now | Programme-level |
Notices
Authorization
This was an authorized security assessment. It was performed under a written engagement agreement with the system owner, who granted explicit permission to test the in-scope systems described above. All testing was conducted within the agreed scope and rules of engagement. No system was accessed, modified, or exfiltrated outside that authorization.
Where a finding would have required crossing an authorization boundary — most notably the third-party content-plane exposure in section 3.3 — the assessment was stopped at the boundary and the capability documented rather than exercised. The reasoning is recorded in the finding itself.
Redaction
Every hostname, bucket name, IP address, credential, and identifier in this document has been replaced with a placeholder. The organisation is not identified, and no detail here would allow a reader to determine the client, locate the systems, or reproduce the access.
Techniques, timelines, agent topology, and finding mechanics are reported exactly as executed, because the methodological value is the point of publishing this.
What was removed:
- All hostnames, subdomains, and bucket names — replaced with placeholders
- All IP addresses, internal ports, and network ranges
- All credential and token values, including API keys, client secrets, and auth headers
- Organisation, agency, and country identifiers
- The nature of the primary portal and of the sibling services, generalised to sector-neutral equivalents, because the specific subject matter would identify the client on its own
- Personal names, official titles, document titles, and file names
- Exact calendar dates — replaced with relative day numbering
- Internal project and system codes
What was kept, deliberately: vendor product names and versions (Keycloak, Strapi, FastAPI, Next.js, and similar), because they are common enterprise software shared by thousands of organisations and naming them is what makes the finding actionable for a reader. No combination of retained details identifies the client.
Placeholders used throughout:
| Placeholder | Meaning |
|---|---|
portal.target.example | Primary in-scope public service portal |
cms-a.stage.target.example, cms-b.stage.target.example | Staging content-management systems |
reserve.target.example | Public-facing service on a sibling subdomain |
api.innovation.target.example | Intake API for project and supplier submissions |
support.stage.target.example | Back-office ERP / helpdesk |
target-statics-bucket, app-{env}-statics | Object-storage buckets |
<redacted> | A credential, key, token, or third-party account identifier |
Data handling
No client data is reproduced in this document. Document titles, file names, personal names, and agency names have been removed or generalised. Where sample content is described, it is described by category and sensitivity rather than by title.
Disclaimer
Findings reflect the state of the tested systems during the eight-day engagement window. Security posture changes; a clean result in one area is not a guarantee of future posture, and a finding here does not imply the condition persists today. Remediation status is not asserted in this document.
Methodology and tooling by BlackBit. Findings independently verified; false positives documented and excluded. Published with the client's permission.