Rapid Fire - Evidence Collector

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

42 Terms

1
New cards

Possible results a check can return

Pass, fail, not_applicable, and error.

2
New cards

When a check returns not_applicable

A free-plan private repository that cannot use branch protection.

3
New cards

What an error result records

The reason the check could not complete, recorded without crashing the collector.

4
New cards

Contents of each evidence file

The check name, a UTC timestamp, the source, the control mappings, and the full result.

5
New cards

Why evidence is stored as JSON instead of screenshots

JSON is timestamped, machine-readable, repeatable, harder to fake, and can re-run on a schedule. Auditors accept system-generated evidence.

6
New cards

Why the collector does not use AI

Evidence must be repeatable and provable. The same input always gives the same answer, using hardcoded, verified control mappings.

7
New cards

Design rule for the GitHub check hook

It may not delete or rewrite anything, and changes need review.

8
New cards

How the branch protection check works

It finds the default branch, reads classic branch protection and rulesets, checks each required rule, then passes or fails and lists what is missing.

9
New cards

How the GitHub check logs in

A fine-grained, read-only personal access token with Metadata and Administration permissions, stored in an environment variable and never in code.

10
New cards

Cause of the false PASS in the first branch check version

It passed if any branch protection existed, and the wrong rule had been selected.

11
New cards

Fix for the false PASS in the branch check

It now requires three specific rules and lists any that are missing.

12
New cards

How the false PASS fix was tested

The check failed correctly, the ruleset was fixed, and it then produced a real PASS.

13
New cards

What the IAM check hook verifies

Root must have MFA, API-only users are listed for review, and console users must have MFA.

14
New cards

How the IAM check verifies root MFA

It reads AccountMFAEnabled from the IAM account summary, so it never touches root credentials.

15
New cards

Access used by the AWS check

A dedicated IAM user with no console access and only the AWS-managed SecurityAudit policy, which is read-only.

16
New cards

Why evidence stores user names only

Names and dates are saved, never ARNs, so the AWS account ID stays out of the evidence files.

17
New cards

Real IAM MFA check result on September 26, 2026

PASS: root MFA enabled, 0 console users, and 1 API-only user listed for review.

18
New cards

Security model in three words

Read-only, env-only, names-only.

19
New cards

How the evidence workflow is triggered

Cron '0 9 * * 1' (Mondays at 09:00 UTC) plus a manual Run workflow button.

20
New cards

Jobs in the evidence workflow

Two jobs, branch-protection and iam-mfa, each running on Python 3.13.

21
New cards

Where evidence is stored after a run

Uploaded as a workflow artifact kept for 90 days.

22
New cards

What 'if: always()' does in the save step

The save step runs even when the check fails, so evidence is kept and the run shows red.

23
New cards

Secrets used by the workflow

EVIDENCETOKEN, AWSACCESSKEYID, and AWSSECRETACCESS_KEY, stored as encrypted repository secrets.

24
New cards

Permission scope of the workflow's own GITHUB_TOKEN

Limited to contents read.

25
New cards

Fix for GitHub's Node 20 deprecation

Checkout, setup-python, and upload-artifact were updated to v7, which run on Node 24.

26
New cards

How the collector was built with Claude Code

Guided by a CLAUDE.md rules file (Python with requests and boto3 only, secrets from environment variables, hardcoded mappings, graceful errors) and delivered through 8 reviewed and tested pull requests.

27
New cards

Limits of the compliance collector

One repository and one AWS account at a time, IAM users only, checks that MFA exists but not its type, uses a long-lived key, evidence is not tamper-proofed, and there is no dashboard or ticketing.

28
New cards

Planned improvements to the collector

OIDC federation instead of stored keys, a custom minimal IAM policy, more checks such as CloudTrail and S3 encryption, central tamper-evident storage, and looping over every repo.

29
New cards

Approach for using the collector with a client

Define scope first, get written authorization in the engagement letter, and have the client run it in their own GitHub Actions with their own read-only token so the consultant never holds standing access.

30
New cards

What the compliance evidence collector is

A Python tool that automatically collects real evidence for two security controls, saves it as timestamped JSON, and runs every Monday on a schedule.

31
New cards

Reason for building the collector

To replace manual evidence collection with screenshots and show what repeatable, automated evidence looks like.

32
New cards

The two checks in the collector

Branch protection on the GitHub default branch, and MFA for AWS IAM console users.

33
New cards

Controls mapped to the branch protection check

NIST CM-3, SOC 2 CC8.1, and ISO 27001 A.8.32.

34
New cards

Controls mapped to the IAM MFA check

NIST IA-2(1) and IA-2(2), SOC 2 CC6.1, and ISO 27001 A.8.5.

35
New cards

Who creates the control mappings

The author hardcodes and manually verifies the mappings, so the tool never guesses controls with AI.

36
New cards

How the AWS IAM check works

It uses boto3 with a read-only SecurityAudit role, lists IAM users, and checks whether each console user has an MFA device.

37
New cards

Exit behavior when a check fails or errors

The collector still saves the evidence, then exits with code 1 so the workflow shows red.

38
New cards

Why the collector runs weekly on Mondays

It shows continuous monitoring instead of a once-a-year scramble for evidence. The weekly cadence is a demo setting, and a real program would set frequency by risk.

39
New cards

Current status of the collector

A proof of concept run on the author's own accounts. It is read-only and collects nothing from any client.

40
New cards

How the collector differs from fullCircle

fullCircle is a full platform that manages the whole compliance program, while the collector is a small script that demonstrates the evidence-collection idea.

41
New cards

Why automation matters for audit evidence

Automation produces evidence that is dated, repeatable, and traceable, which auditors need, and it frees people to focus on judgment work.

42
New cards

Work that people can focus on when evidence is automated

Interpreting results, deciding whether a gap is acceptable, and assessing risk, which require human judgment that automated collection cannot replace.