Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .circleci/config.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: Validate repository
run: bash scripts/validate-premerge.sh --skip-compose

- name: Verify required Guardian artifact
shell: bash
run: |
set -euo pipefail
test -f system/security/guardian/build/out/guardian.jar

- name: Publish .NET services
shell: bash
run: |
Expand All @@ -71,8 +77,8 @@ jobs:
cp frontend/package.json frontend/package-lock.json release/frontend/
if [[ -d frontend/public ]]; then cp -R frontend/public release/frontend/public; fi
cp -R docs/irp release/docs/irp
cp README.md SECURITY.md RELEASE_PROCESS.md release/
if [[ -f out/guardian.jar ]]; then cp out/guardian.jar release/; fi
cp README.md SECURITY.md RELEASE_PROCESS.md CHANGELOG.md release/
cp system/security/guardian/build/out/guardian.jar release/guardian.jar

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Package the Guardian runtime scripts with the JAR

The Guardian build target produces guardian_init.sh, iu_security_init, iu_auth_service, and the vault scripts alongside the JAR, and the repository's top-level build packages all of them because the boot sequence invokes these executables. Copying only guardian.jar leaves the release archive without the boot/runtime components needed to exercise the Guardian platform during the required artifact smoke test.

Useful? React with 👍 / 👎.

tar -czf "acing-iu-genesis-${GITHUB_REF_NAME}.tar.gz" -C release .
sha256sum "acing-iu-genesis-${GITHUB_REF_NAME}.tar.gz" > "acing-iu-genesis-${GITHUB_REF_NAME}.sha256"

Expand All @@ -88,6 +94,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-') }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- release workflow ---'
nl -ba .github/workflows/release.yml | sed -n '1,130p'
printf '%s\n' '--- tag/version references ---'
rg -n -i --glob '!node_modules' --glob '!dist' --glob '!build' \
  'semver|pre.?release|buildmetadata|build metadata|github\.ref_name|tag.*v[0-9]|v[0-9].*\+' \
  .github README.md docs scripts 2>/dev/null | head -250 || true
printf '%s\n' '--- release-related files ---'
git ls-files | rg '(^|/)(release|Makefile|package\.json|pyproject\.toml|pom\.xml|build\.gradle|Cargo\.toml)' | head -200

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 816


🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- release workflow ---'
sed -n '1,130p' .github/workflows/release.yml
printf '%s\n' '--- repository tag/version guidance ---'
rg -n -i --hidden --glob '!node_modules' --glob '!dist' --glob '!build' \
  'semver|pre.?release|build.?metadata|release.*tag|tag.*release|version' \
  . ':!/.git' 2>/dev/null | head -300 || true
printf '%s\n' '--- classification probe ---'
python3 - <<'PY'
tags = [
    "v1.4.0",
    "v1.4.0-rc.1",
    "v1.4.0+build-1",
    "v1.4.0-rc.1+build-1",
    "v1.4.0+build.1",
]
for tag in tags:
    version = tag.removeprefix("v")
    version_without_build = version.split("+", 1)[0]
    current = "-" in tag
    proposed = "-" in version_without_build
    print(f"{tag}: current={current}, proposed={proposed}")
PY

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 39112


Derive prerelease from the SemVer core.

v1.4.0+build-1 matches the workflow trigger but is a stable version. The current expression marks it as a prerelease because the build metadata contains -. Remove the +buildmetadata portion before checking for -, or use a SemVer parser.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml at line 97, Update the prerelease expression
in the release workflow to evaluate only the SemVer core by removing any
+buildmetadata portion from github.ref_name before checking for a hyphen.
Preserve prerelease detection for versions with a hyphen in the core while
treating versions such as v1.4.0+build-1 as stable.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Parse only the SemVer prerelease segment

This marks any tag containing a hyphen as a prerelease, including stable SemVer tags whose build metadata contains one, such as v1.4.0+linux-x64. Since the documented version format permits build metadata, such a stable release would be incorrectly published as a GitHub prerelease; determine whether a hyphen occurs in the version portion before any + metadata instead.

Useful? React with 👍 / 👎.

fail_on_unmatched_files: true
files: |
acing-iu-genesis-${{ github.ref_name }}.tar.gz
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Changelog

All notable changes to Acing IU: Genesis are documented here.

## [Unreleased]

### Planned

- Release-candidate artifact smoke testing
- Container vulnerability scanning and provenance attestation
- Device-level Guardian integration testing

## [1.4.0-rc.1] - 2026-08-12

### Added

- Genesis IRP v1.3.1 foundation
- Guardian identity and device-trust services with fail-closed enforcement
- .NET Identity and Device Trust services
- Next.js security-center frontend
- repository-integrity and clean-clone validation
- dependency review, NuGet/npm auditing, and Gitleaks scanning
- SPDX SBOM generation
- automated tagged GitHub releases with checksums

### Changed

- Upgraded the frontend security baseline to Next.js 16 and React 19
- Replaced placeholder CODEOWNERS entries with the repository maintainer
- Consolidated obsolete foundation branches and pull requests

### Security

- Removed hardcoded database credentials from tracked infrastructure configuration
- Remediated eight high-severity frontend dependency findings
- Added automated secret and dependency gates

### Known limitations

- This is a prerelease evaluation build, not a stable production release.
- Hardware-backed vault, verified boot, device attestation, and production MFA remain incomplete.
103 changes: 36 additions & 67 deletions RELEASE_PROCESS.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,60 @@
# Release Process — Acing IU: Genesis

> **Feature-status legend**
> ✅ Implemented · 🧪 Experimental · 📋 Planned
## Status

---

## Overview

This document describes how releases of Acing IU: Genesis are prepared, validated, and published.
The current release process is **📋 Planned** — no formal release pipeline exists yet.
This document establishes the target process for Phase 4 (Engineering Maturity).

---
The automated GitHub release pipeline, security audits, and SPDX SBOM generation are implemented. Release candidates remain pre-production validation builds and do not represent a stable or LTS product.

## Versioning

The project uses [Semantic Versioning 2.0.0](https://semver.org/):
The project follows Semantic Versioning 2.0.0:

```
```text
MAJOR.MINOR.PATCH[-prerelease][+buildmetadata]
```

| Segment | Changed when |
|---|---|
| MAJOR | Incompatible API or boot-contract changes |
| MINOR | New features added in a backward-compatible manner |
| PATCH | Backward-compatible bug fixes |
| Pre-release | `-alpha.N`, `-beta.N`, `-rc.N` |

**Note:** The IRP package number and product version must not be used interchangeably.
IRP package numbers and product versions are separate identifiers.

---
## Release stages

## Release stages 📋 Planned

| Stage | Description |
| Stage | Purpose |
|---|---|
| `alpha` | Internal development; no stability guarantees |
| `beta` | Feature-complete for the milestone; limited external testing |
| `rc` (release candidate) | Freeze; only critical bug fixes permitted |
| `stable` | Publicly tagged and documented release |

---

## Release artefacts 📋 Planned

Each stable release should produce:

- `guardian.jar` — compiled Guardian platform
- Boot scripts archive (`guardian_init.sh`, `iu_security_init`, etc.)
- SBOM (Software Bill of Materials) in SPDX format
- Container images (when containerisation is implemented) with digest pins
- Release notes (`CHANGELOG.md` entry)
- Signed tag (`git tag -s vX.Y.Z`)

---
| `beta` | Feature-complete milestone testing |
| `rc` | Release freeze; critical fixes only |
| stable | Public supported release described by its release notes |

## Release checklist 📋 Planned
## Automated artifacts

1. All CI checks pass on `main`.
2. `bash scripts/validate-premerge.sh` exits 0 on a clean clone.
3. CHANGELOG.md entry written and reviewed.
4. Version bumped in build files.
5. Release branch created (`release/vX.Y.Z`).
6. Release candidate tagged (`vX.Y.Z-rc.1`) and validated.
7. Final tag signed and pushed (`vX.Y.Z`).
8. GitHub Release created with artefacts attached.
9. Security advisory review completed (no outstanding critical issues).
Every version tag matching `v*.*.*` triggers `.github/workflows/release.yml` and produces:

---
- compiled `guardian.jar`;
- published Identity and Device Trust .NET services;
- compiled Next.js frontend files;
- IRP documentation;
- SPDX JSON SBOM;
- SHA-256 checksum;
- compressed release archive;
- GitHub Release with generated notes.
Comment on lines +28 to +37

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Document the release files staged by the workflow.

.github/workflows/release.yml copies CHANGELOG.md, README.md, SECURITY.md, and RELEASE_PROCESS.md into release/, but this list does not mention those files. Because the section says that every tag “produces” the listed outputs, add the staged documentation or state that the list is non-exhaustive.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~28-~28: The official name of this software platform is spelled with a capital “H”.
Context: ... version tag matching v*.*.* triggers .github/workflows/release.yml and produces: -...

(GITHUB)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@RELEASE_PROCESS.md` around lines 28 - 37, Update the release outputs list in
RELEASE_PROCESS.md to include CHANGELOG.md, README.md, SECURITY.md, and
RELEASE_PROCESS.md staged in release/ by .github/workflows/release.yml, or
explicitly state that the list is non-exhaustive.


## Hotfix process 📋 Planned
Tags containing a prerelease suffix, such as `-rc.1`, are published as GitHub prereleases.

For critical security fixes:
## Release-candidate checklist

1. Branch from the affected tag: `git checkout -b hotfix/vX.Y.Z+1 vX.Y.Z`
2. Apply minimal fix.
3. Fast-track CI + security review.
4. Tag as `vX.Y.Z+1` and backport to `main`.
1. Confirm `master` is current and has no unintended local changes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep release procedures on the actual main branch

The repository's active branch is main, not master (and existing contributor guidance and multiple workflows also target main). An operator following this checklist cannot prepare the release from the named branch, while the hotfix section likewise directs corrections back to a nonexistent branch; change these new master references, including the supported-version entry in SECURITY.md, back to main.

Useful? React with 👍 / 👎.

2. Confirm Repository Integrity, Clean-Clone Baseline, Security and Dependency Review, and SBOM workflows pass.
3. Confirm no unresolved release-blocking issues or pull requests remain.
4. Update `CHANGELOG.md`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the artifact version bump before tagging

The rewritten checklist removes the previous build-version bump, while the workflow does not derive a version from the tag: the frontend package remains 1.0.0, and both .NET projects have no version property and therefore publish with their default 1.0 version. Following this checklist for v1.4.0-rc.1 consequently creates artifacts whose embedded metadata identifies a different release, so update the build metadata or inject the tag version before publishing.

Useful? React with 👍 / 👎.

5. Create and push an annotated release-candidate tag.
6. Confirm the Release workflow passes.
Comment on lines +43 to +48

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Add the merge and post-merge gate before tagging.

The PR objective requires the release tag to be created and pushed only after the PR is merged and post-merge checks pass. The checklist moves from validation to tag creation without stating either condition. Add an explicit merge step and require the post-merge Repository Integrity, Clean-Clone Baseline, Security and Dependency Review, and SBOM checks before Line 47.

🧰 Tools
🪛 LanguageTool

[style] ~45-~45: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ncy Review, and SBOM workflows pass. 3. Confirm no unresolved release-blocking issues o...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@RELEASE_PROCESS.md` around lines 43 - 48, Add explicit checklist steps before
the annotated release-candidate tag step: confirm the release PR has been
merged, then confirm the post-merge Repository Integrity, Clean-Clone Baseline,
Security and Dependency Review, and SBOM workflows pass. Keep tag creation and
pushing after both gates.

7. Download all artifacts and verify the SHA-256 checksum.
8. Smoke-test the Guardian JAR, .NET services, and frontend from the release archive.
9. Record defects; create `-rc.2` if corrections are required.
10. Promote to a stable tag only after release-candidate acceptance.

---
## Stable release

## Current gaps
Stable releases require a signed final tag, completed release-candidate evidence, no open critical security findings, and explicit maintainer approval.

- No automated release pipeline (GitHub Actions release workflow).
- No CHANGELOG.md yet.
- No SBOM generation tooling configured.
- No container images to sign.
## Hotfixes

These gaps are tracked in `docs/evidence/repository-integrity-baseline.md`.
Create a minimal branch from the affected stable tag, run the complete CI and security gate set, publish a new semantic patch version, and merge the correction back into `master`.
93 changes: 37 additions & 56 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,58 @@
# Security Policy — Acing IU: Genesis

> **Feature-status legend**
> ✅ Implemented · 🧪 Experimental · 📋 Planned

---

## Supported versions

| Version | Supported |
|---|---|
| `main` (HEAD) | ✅ Active development |
| Any tagged release | See individual release notes |

This project is in early development (pre-1.0). No long-term-support (LTS) channel exists yet.
| `master` (HEAD) | Active development |
| Latest release candidate | Validation support only |
| Stable tagged releases | See the applicable release notes |

---
The project is pre-1.0 and currently has no LTS channel.

## Reporting a vulnerability

**Do not open a public GitHub issue for security vulnerabilities.**
Do not open a public issue for a suspected vulnerability.

1. Email **security@acing-iu.example** (placeholder — replace with real address before publishing).
2. Include:
- A clear description of the vulnerability.
- Steps to reproduce or a proof-of-concept (if safe to share).
- The component(s) affected.
- The potential impact.
3. You will receive an acknowledgement within **72 hours**.
4. We target a fix within **14 calendar days** for critical issues and **30 days** for others.
5. A CVE will be requested where appropriate.
1. Open the repository's **Security** tab.
2. Select **Report a vulnerability** to create a private security advisory.
3. Include affected components, reproducible steps, impact, and a safe proof of concept when available.
4. If private reporting is unavailable, contact the repository maintainer through the GitHub profile without publishing exploit details.
Comment on lines +15 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- SECURITY.md ---'
cat -n SECURITY.md
printf '%s\n' '--- repository metadata ---'
git remote -v || true
printf '%s\n' '--- contact and reporting references ---'
rg -n -i 'security|vulnerabil|maintainer|contact|email|private|report' README.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTING.md .github 2>/dev/null || true

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 12530


🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- public maintainer profile data ---'
curl -fsSL -H 'Accept: application/vnd.github+json' \
  https://api.github.com/users/AcingTime420 |
  jq '{login,name,email,blog,twitter_username,bio,html_url}'
printf '%s\n' '--- public repository metadata ---'
curl -fsSL -H 'Accept: application/vnd.github+json' \
  https://api.github.com/repos/AcingTime420/Acing-IU-Genesis |
  jq '{full_name,has_issues,has_discussions,security_and_analysis}'
printf '%s\n' '--- profile page contact links ---'
curl -fsSL https://github.com/AcingTime420 |
  grep -Eo 'href="[^"]+"|mailto:[^"]+' |
  grep -Ei 'mailto|contact|email|keybase|proton|matrix|pgp|security' || true

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 1040


Make the fallback reporting path private and explicit.

The maintainer profile does not expose or document a private contact method. Add a repository-controlled private address or form for vulnerability reports.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@SECURITY.md` around lines 15 - 20, Update the fallback reporting guidance in
SECURITY.md to provide a repository-controlled private contact method or form
instead of directing reporters to the maintainer’s GitHub profile. Clearly
identify that address or form and instruct reporters to use it without
publishing vulnerability details.


Please do not disclose the issue publicly until a fix is available and we have had a chance to notify affected users.
Target response times are 72 hours for acknowledgement, 14 calendar days for critical fixes, and 30 days for other validated findings.

---
## Implemented security controls

## Security design principles

| Principle | Status |
|---|---|
| Hardware root of trust (Acing Vault / TrustZone) | 🧪 Experimental (emulated) |
| Verified boot (AVB 2.0) | 🧪 Experimental |
| Biometric/strong-auth gate for admin actions | 🧪 Experimental |
| Runtime tamper detection | 🧪 Experimental |
| Declarative security policy enforcement | 🧪 Experimental |
| Non-root runtime containers | 📋 Planned |
| Read-only root filesystem | 📋 Planned |
| Structured security-event audit log | 📋 Planned |
| MFA encryption at rest | 📋 Planned |
| Redis-backed token revocation | 📋 Planned |
| Rate limiting on authentication endpoints | 📋 Planned |
| SBOM generation | 📋 Planned |
| Container vulnerability scanning (Trivy / Grype) | 📋 Planned |
- pull-request dependency review with a high-severity gate;
- NuGet transitive vulnerability auditing;
- npm high/critical vulnerability auditing;
- full-history Gitleaks secret scanning;
- weekly Dependabot monitoring for NuGet, npm, Docker, and GitHub Actions;
- SPDX SBOM generation;
- repository-integrity and clean-clone validation;
Comment on lines +26 to +32

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

fail=0

check() {
  local label="$1"
  local pattern="$2"

  if ! rg -n -i -- "$pattern" .github 2>/dev/null; then
    printf 'No evidence found for: %s\n' "$label" >&2
    fail=1
  fi
}

check "npm vulnerability auditing" 'npm[[:space:]]+audit|audit.*(high|critical)'
check "full-history Gitleaks scanning" 'gitleaks|fetch-depth:[[:space:]]*0|--log-opts=.*--all'
check "weekly Dependabot monitoring" 'dependabot|package-ecosystem|interval:[[:space:]]*weekly'
check "SPDX SBOM generation" 'spdx|sbom|syft|anchore'
check "repository-integrity or clean-clone validation" 'repository-integrity|repo-integrity|clean[-_ ]clone|git clone'

exit "$fail"

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 2453


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- SECURITY.md ---'
sed -n '1,120p' SECURITY.md

printf '%s\n' '--- security workflow ---'
sed -n '1,180p' .github/workflows/security.yml

printf '%s\n' '--- SBOM workflow ---'
sed -n '1,140p' .github/workflows/sbom.yml

printf '%s\n' '--- CI workflow ---'
sed -n '1,190p' .github/workflows/ci.yml

printf '%s\n' '--- Dependabot configuration ---'
cat .github/dependabot.yml

printf '%s\n' '--- Other workflow triggers and security-related claims ---'
for f in .github/workflows/*.yml .github/workflows/*.yaml; do
  [ -f "$f" ] || continue
  printf '\n### %s\n' "$f"
  rg -n -i '^(name:|on:|  [A-Za-z-]+:|      - name:|        uses:|        run:|permissions:|  permissions:|fail|audit|gitleaks|sbom|spdx|integrity|clone)' "$f" || true
done

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 23167


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- repository-integrity workflow ---'
sed -n '1,120p' .github/workflows/repo-integrity.yml

printf '%s\n' '--- threat-model references ---'
rg -n -i -C 3 'guardian|device.?trust|fail.?closed|clean.?clone|integrity|planned|stub|experimental' THREAT_MODEL.md .github scripts backend frontend 2>/dev/null | head -n 320

printf '%s\n' '--- Guardian and device-trust declarations ---'
rg -n -i 'Guardian|DeviceTrust|Device.?Trust|fail.?closed|fail.?open|deny|allow' backend frontend --glob '!**/bin/**' --glob '!**/obj/**' 2>/dev/null | head -n 320

printf '%s\n' '--- clean-clone and repository-integrity declarations ---'
rg -n -i -C 2 'clean.?clone|repo.?integrity|generated artifacts|tracked generated|git ls-files|validate-premerge' .github scripts README.md SECURITY.md THREAT_MODEL.md 2>/dev/null | head -n 320

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 46137


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- Guardian source files ---'
git ls-files 'system/security/guardian' | head -n 80

printf '%s\n' '--- Guardian source outline ---'
for f in $(git ls-files 'system/security/guardian' | head -n 12); do
  printf '\n### %s\n' "$f"
  wc -l "$f"
  rg -n -i 'auth|identity|device|trust|fail|deny|allow|stub|TODO|planned|experimental|emulat' "$f" | head -n 80 || true
done

printf '%s\n' '--- focused policy evidence check ---'
python3 - <<'PY'
from pathlib import Path
import re

security = Path("SECURITY.md").read_text()
security_workflow = Path(".github/workflows/security.yml").read_text()
sbom_workflow = Path(".github/workflows/sbom.yml").read_text()
ci_workflow = Path(".github/workflows/ci.yml").read_text()
integrity_workflow = Path(".github/workflows/repo-integrity.yml").read_text()
dependabot = Path(".github/dependabot.yml").read_text()
threat_model = Path("THREAT_MODEL.md").read_text()
validator = Path("scripts/validate-premerge.sh").read_text()

checks = {
    "private advisory reporting": "Report a vulnerability" in security,
    "fallback names only a GitHub profile": "contact the repository maintainer through the GitHub profile" in security,
    "dependency review high gate": "fail-on-severity: high" in security_workflow,
    "NuGet transitive audit": "--vulnerable --include-transitive" in security_workflow,
    "npm high audit": "npm audit --audit-level=high" in security_workflow,
    "full-history checkout for Gitleaks": "fetch-depth: 0" in security_workflow and "gitleaks/gitleaks-action" in security_workflow,
    "weekly Dependabot ecosystems": all(
        ecosystem in dependabot and "interval: weekly" in dependabot
        for ecosystem in ("nuget", "npm", "github-actions", "docker")
    ),
    "SPDX SBOM generation": "format: spdx-json" in sbom_workflow,
    "repository-integrity failure path": "exit 1" in integrity_workflow and "git ls-files" in integrity_workflow,
    "clean-clone validator invoked": "bash scripts/validate-premerge.sh --skip-compose" in ci_workflow,
    "clean-clone validator skips unavailable checks": "skipping" in validator.lower(),
    "threat model marks auth stub": "iu_auth_service` is a shell stub" in threat_model,
    "threat model marks hardware trust planned": "Replace emulator with TrustZone" in threat_model and "📋 Planned" in threat_model,
}

for label, result in checks.items():
    print(f"{'PASS' if result else 'FAIL'}: {label}")
PY

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 12321


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- GuardianService decision paths ---'
sed -n '60,245p' system/security/guardian/core/GuardianService.kt

printf '%s\n' '--- IdentityService authentication paths ---'
sed -n '100,195p' system/security/guardian/identity/IdentityService.kt

printf '%s\n' '--- DeviceTrustEngine decision paths ---'
sed -n '1,220p' system/security/guardian/trust/DeviceTrustEngine.kt

printf '%s\n' '--- Guardian policy definitions ---'
cat system/security/guardian/policy/policies.json

printf '%s\n' '--- Threat-model status table ---'
sed -n '24,105p' THREAT_MODEL.md

Repository: AcingTime420/Acing-IU-Genesis

Length of output: 20602


Qualify Guardian and clean-clone controls, and add a private fallback channel.

  • Keep the dependency, audit, Gitleaks, Dependabot, SBOM, and repository-integrity controls as implemented.
  • Label Guardian identity and device-trust foundations as experimental. Biometric authentication is a placeholder, and attestation uses AcingVaultEmulator.
  • Qualify clean-clone validation as conditional because CI runs scripts/validate-premerge.sh --skip-compose and skips unavailable checks.
  • Add a private email address or intake channel when GitHub Security Advisories are unavailable.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@SECURITY.md` around lines 26 - 32, Update SECURITY.md to retain the
dependency, audit, Gitleaks, Dependabot, SBOM, and repository-integrity
controls, while labeling Guardian identity and device-trust foundations as
experimental and noting biometric authentication is a placeholder with
attestation using AcingVaultEmulator. Qualify clean-clone validation as
conditional because CI runs scripts/validate-premerge.sh --skip-compose, and
document a private email or intake channel for cases where GitHub Security
Advisories are unavailable.

- fail-closed Guardian identity and device-trust foundations.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Classify placeholder authentication as a known limitation

On a normal Guardian startup, initializeIdentityLayer merely provisions and immediately revokes a probe credential before setting authAvailable, while requireBiometricOrStrongAuth returns true without authenticating a caller; the boot-facing iu_auth_service also remains a stub that exits successfully. Listing this as implemented fail-closed identity enforcement hides the scenario where the admin setup proceeds without any real authentication, so retain the explicit stub limitation and classify this control as experimental until an actual credential check is wired into the access path.

Useful? React with 👍 / 👎.


---
## Experimental or planned controls

## Known limitations (current baseline)

- `iu_auth_service` is a **shell stub** — it does not perform real authentication.
- `AcingVaultEmulator` is a **software emulation** — it does not provide hardware-backed guarantees.
- No network-accessible HTTP endpoints exist; the threat surface is currently limited to the build toolchain and boot scripts.
- No automated security scanning (SAST/DAST) is configured yet.

---
| Control | Status |
|---|---|
| Hardware root of trust / Acing Vault | Experimental software emulation |
| Verified boot integration | Experimental |
| Runtime tamper detection | Experimental |
| Container vulnerability scanning | Planned |
| Container signing and provenance attestation | Planned |
| Hardware-backed credential wrapping | Planned |
| Production MFA enrollment | Planned |

## Threat model
## Known limitations

See `THREAT_MODEL.md` for a full threat model.
- Acing Vault currently provides software emulation, not hardware-backed guarantees.
- Guardian identity and trust integrations are foundation implementations requiring device-level production integration.
- Release candidates are evaluation builds and must not be represented as production-ready security products.
- Security scanners reduce risk but do not prove the absence of vulnerabilities.

---
See `THREAT_MODEL.md` for the current threat model.

## Security contacts
## Maintainer

| Role | Contact |
|---|---|
| Security lead | security@acing-iu.example |
| Project maintainer | @AcingTime420 |
- GitHub: [@AcingTime420](https://github.com/AcingTime420)
Loading