n2h4@home:~$

Investigating a compromised AWS key with IRMind v0.7.5

Leer en español

dfir · cloud · tools | aws · cloudtrail · guardduty · s3 · sigma · forensics · irmind

A CI team may use the same AWS key every day for months. When it starts making requests from a new IP address, the first question is what that key did. The next is what another identity could do because of the changes the first one made. Identity problems come up often in cloud investigations. In Mandiant’s sample of cloud and SaaS incidents from the second half of 2025, identity issues were a common route to initial access. That is a reason to practise this workflow, without generalising the sample to every AWS account. Cloud Threat Horizons H1 2026.

When I introduced IRMind, I described how it brings together local queries, forensic methods and a signed case record. This time I’m walking through the process with IRMind v0.7.5. I wanted to see whether I could start with a collection that resembled a CloudTrail delivery, review detections without AI and produce a report someone else could verify.

The scenario, Velunara Quays Analytics, the identities and the data are fictional. The account 111122223333 is an example identifier. The case IPs come from documentation ranges and the imaginary repository is under example.com. The collection contains no usable credentials or customer data. The report of a CI key exposed in the repository is the premise of the exercise. CloudTrail lets us investigate subsequent use of the key. Proving the original disclosure in a real case would require repository logs or the original evidence of exposure. RFC 5737 · RFC 2606.

1. Install and verify the release

I downloaded the stable v0.7.5 Linux x86-64 executable, its Sigstore bundle, SHA256SUMS and the manifest bundle. I used cosign 3.1.3 to verify the manifest signature, checked the single SHA-256 line for the executable and verified the executable’s signature. Both signature checks required the ci.yml workflow identity for refs/tags/v0.7.5 and the GitHub Actions issuer. The hash compares bytes. The certificate identity ties those bytes to the release I intended to install. v0.7.5 release · Release verification.

Verified OK
irmind-linux-x86_64: OK
Verified OK
irmind 0.7.5

The example’s verification script repeats those checks with the same identifiers. The terminal output and recordings come from runs of the distributed binary. […] marks omitted lines in excerpts. The dialogue in section 6 is a simulation based on records from that case.

2. Create and scope the case

I used a fresh encrypted keystore and recorded the analyst’s public-key fingerprint separately. I created a high-severity case for the example account and set the interval from 26 November at 08:00 UTC through 28 November at 08:00 UTC. The local delivery covers us-east-1. I kept connectors and the model disabled for this first pass. Setting a window before reviewing the alert gave me routine activity from the same user to compare with the unusual requests, and made the report’s time bounds explicit.

irmind case new 'Velunara Quays Analytics (fictional lab)' --severity high \
  --scope 'v2;sources=cloudtrail;accounts=111122223333;projects=;hosts=;from=2026-11-26T08:00:00Z;to=2026-11-28T08:00:00Z'

IRMind’s text protection masked the account number in some views. The placeholder in the interface is part of the program’s output.

3. Ingest the delivery as collected

I selected the entire folder with /ingest data. The twelve CloudTrail files follow AWSLogs/<account>/CloudTrail/<region>/YYYY/MM/DD/ and contain gzip-compressed JSON. They sit alongside a GuardDuty finding, a file under CloudTrail-Digest and three .sha256 companions. The digest has the AWS structure, but it’s fictional and lacks the signature AWS stores in the object’s metadata. CloudTrail delivery format · Digest structure.

IRMind recognised the files without requiring me to decompress them, rearrange them or choose a parser for each one. It signed four skip outcomes for the three checksum companions and the digest. It compared the companions against the compressed bytes. Two agreed and one declared a different SHA-256. The gzip in question was readable and still ingested. The warning remained tied to the file and its signed receipt. A match against an unsigned .sha256 establishes agreement with that declaration. Establishing AWS provenance calls for a separate check. IRMind folder ingestion outcomes.

IRMind's folder ingestion summary highlights the SHA-256 mismatch.

Ingestion recording (GIF).

4. Review what was ingested with /evidence

The evidence view showed 13 sources and 265 indexed records, made up of 264 CloudTrail events and the GuardDuty finding. It also counted 167 categorised records and 166 with a known outcome. An uncategorised record may still be searchable and retain original fields. If I filter the whole investigation by a normalised category, I can miss the very call I was looking for.

Each source has a reference, size, SHA-256 and parser. The file hash and record index let me return to one row in a particular gzip. A hash alone cannot distinguish between two requests in the same file. This view retains the totals for skipped files and the mismatch. That matters when a second analyst receives the collection and needs to know why some files are present in the directory but don’t count as events.

The evidence view lists 13 sources, 265 records and the selected parsers.

5. Run Sigma without AI

I wrote five rules for the lab under the project’s MIT or Apache 2.0 licence. I selected MIT for the import. The rules use exercise indicators, including the scenario IP and the lab-ops-sync identity. They cover discovery, key and user creation, attachment of the fictional policy, the denied StopLogging request and subsequent reads. A match is a lead in this exercise. The selectors aren’t a general detector for compromised AWS accounts.

I ran /sigma inspect sigma to review the manifest, signed admission with /sigma import --license MIT sigma and ran /sigma run with the manifest hash and the two UTC bounds. IRMind produced 71 unconfirmed matches. The rules proposed two discovery rows, three user or key creation rows, one policy attachment, one attempt to stop the trail and 64 S3 reads. Background traffic includes the same calls from the usual CI IP and legitimate reads from the bucket. The per-rule counts describe this collection and cannot establish a detection rate.

IRMind asks the analyst to review the manifest and sign Sigma pack admission.

IRMind's Sigma result shows 71 unconfirmed matches.

The discovery rule includes ListUsers, but the reviewed CloudTrail table for Sigma in v0.7.5 doesn’t enrol that operation. The call is present in the original log. Zero skipped rules describes compilation against applicable source classes. It leaves CloudTrail operations outside those classes uncovered. I reviewed GuardDuty separately because this pack only queries CloudTrail. Sigma coverage · Reviewed CloudTrail table.

6. Investigate with an assistant

Simulated dialogue based on the case evidence. The analyst invokes the aws-credential-compromise skill. The assistant proposes finding StopLogging with text_search and opening the row with raw_records. Policy can allow both local reads if they are within scope. A remote source query requiring consent would wait for the analyst’s signature. Skill methodology.

Analyst. Did CloudTrail stop running? What identity changes had already taken place?

Assistant. On 26 November, ci-build created lab-ops-sync at 09:08 UTC, attached VelunaraLabAdministrator at 09:09 and created an access key for that user at 09:11. At 12:37, StopLogging returned AccessDenied. The event attributes the failure to an explicit deny in an SCP. That request did not stop the trail. Sources: CloudTrail 3c178b30c2b2c8a3ba9bbf6f9bbfa8b63566b219412bef35fd5268c7ed782374, rows 9, 10, 11 and 22.

Analyst. What did lab-ops-sync do next, and what does that tell us about the data?

Assistant. Sigma flagged 64 reads from the exports/customers/ prefix. The first and last landed on 27 November between 15:12:00 and 15:31:57 UTC. The GuardDuty finding matches the user and bucket. The evidence supports that S3 served the reads. Other sources would be needed to establish what the client received. Sources: CloudTrail c439972755456f90359c09ab7f6adc9acaaf073a7c2ccd2e2c6650265b55d9d8, rows 8 and 71, and GuardDuty 43a29dc84c2755d382e4d59c6f90dc636182cfba58d60261856db6c356a56ef5, row 0.

The citations make each answer traceable. The analyst opens the rows, checks the fields and decides which findings to confirm. The confirmations and reports in the following sections come from the recorded run.

7. Confirm the findings

I confirmed six proposals after checking their records with irmind raw-records. I kept a discovery row, the creation of lab-ops-sync and its key, the policy attachment, the denied StopLogging call and the new user’s first read. The other 65 proposals remained pending. The report lets a reviewer trace each confirmation to its source. This excerpt is the row for the trail.

[…]
- Velunara lab denied CloudTrail StopLogging request
  - SHA-256 3c178b30c2b2c8a3ba9bbf6f9bbfa8b63566b219412bef35fd5268c7ed782374 · record 22
[…]

Row 22 records AccessDenied and attributes the rejection to an explicit deny in an SCP. Row 10 records the attachment of VelunaraLabAdministrator to lab-ops-sync. The administrator permission is a premise of the exercise. To establish effective permissions in a real case I’d check the policy document and the controls that restrict its use. The 64 matching reads involve the new user and the export prefix. The synthetic GuardDuty finding identifies the same user and bucket. It is a lead on the same activity. Bucket access logs or network evidence would help determine what the client received and whether there was additional activity outside the collection reviewed.

Lab timeline distinguishing the fictional intake from CloudTrail, Sigma and GuardDuty observations.

8. Publish a signed report inside the case

I saved the report with /report save md en and /report save pdf en, and repeated both formats in Spanish. IRMind signed the publications inside the case. The signature binds the report’s checkpoint, its citations and the SHA-256 of the rendered bytes. The standalone PDF can be read directly. Verifying that it is the signed publication requires the case package.

The limitations section retains the checksum discrepancy and the skill’s coverage gaps, including S3 server access logs and VPC Flow Logs. The SHA-256 warning persists even though the gzip still matches the bytes that were ingested. The warning compares the file to its companion’s declaration. Verification checks the originals against the case’s own hashes. The report labels the availability of the external originals as unknown. The subsequent verification read all 13 from the selected directory.

IRMind publishes a signed report and shows the SHA-256 of its rendered bytes.

Signed report in Markdown · Signed report in PDF.

9. Seal, export and verify on another platform

I ran /verify against the originals, sealed the case and exported it with --include-originals. I then used the v0.7.5 Linux ARM64 executable, also checked by checksum and Sigstore, in a Debian ARM64 container emulated with QEMU and disconnected from the network. The container received the package and the separately recorded public fingerprint. The analyst’s keystore and evidence directory were outside the container.

[…]
verified 147 audit entries; analyst key fingerprint 893dbdb2f9aca114855bd95044e056bd27d16baced86ef1c0bc146321c2ab193
signed source manifests: 13; original bytes verified: 13; originals unavailable in package: 0

The seal lets a reviewer verify the preserved case and examine its reports, detections and sources. Verifying the export leaves the question of the original key exposure and the limits of the collection as reported.

The ARM64 IRMind verifier checks the source manifests and all 13 originals in the package.

ARM64 verification recording (GIF) · V10 export for the fictional case.

The analyst’s public fingerprint for this package is 893dbdb2f9aca114855bd95044e056bd27d16baced86ef1c0bc146321c2ab193. Pass it to irmind verify-export velunara-lab.irmind --expected-key.

Reproduce the lab and contribute

IRMind v0.7.5 is a pre-1.0 evaluation release. Sigma coverage depends on the family, the source class and the reviewed fields. Source queries are experimental and this exercise doesn’t validate the tool for real incidents. In a real case I’d compare the scope with log retention, collect independent evidence of repository exposure and ask the AWS team for the effective policy and access or network evidence to establish where the data went.

The example includes the generator, the committed gzip files, the checksum companions, the GuardDuty finding and the rules. Run python3 generate.py --check to check the collection. If you find a difference, share the parser, the rule and a minimal synthetic sample. Improvements to mappings and forensic methods are welcome too. Reproducible example and commands · IRMind repository · Earlier case study on a suspected S3 breach.