Table of Contents

Security

The Security section examines architectural boundaries that can reduce accidental authority, hidden execution paths, unsafe defaults, and ambiguous control flow.

Security in AsiBackbone Learning is approached as an architectural responsibility rather than a single feature or package.

Section status: Focused security learning now covers trust boundaries, least privilege, secret handling, secure logging, replay protection, cryptographic evidence boundaries, software supply-chain integrity, and threat modeling as architecture reasoning. Start with Trust Boundaries and Least Privilege, continue with Secret Handling Across Trust Boundaries to follow authority-bearing values through custody, delivery, use, rotation, and revocation, then use Secure Logging Across Trust Boundaries to examine observability as an outbound data boundary. Continue with Replay Protection and Bounded-Use Authority, Signing, Verification, Key Custody, and Tamper Evidence, and Software Supply-Chain Integrity for .NET Repositories. Finish with Threat Modeling as Architecture Reasoning to synthesize those controls into a repeatable architecture-review method before returning to the Foundational Tutorials and governed-execution path.

A secure boundary should remain visible when the system is under pressure.

Start Here

Trust Boundaries and Least Privilege is the first focused security tutorial. It treats trust boundaries as changes in control over data or authority and least privilege as an architectural constraint on what authority crosses those boundaries.

The tutorial connects caller-supplied versus authoritative context, authentication, authorization, policy decisions, credential ownership, narrow authority, boundary validation, resource ownership, and fail-safe behavior.

Secret Handling Across Trust Boundaries extends the configuration and least-privilege material into a full credential lifecycle. It treats passwords, API keys, client secrets, database credentials, tokens, and private keys as authority-bearing values whose creation, custody, delivery, runtime use, rotation, revocation, compromise response, and removal cross distinct trust boundaries.

Secure Logging Across Trust Boundaries applies the same boundary reasoning to operational telemetry. It builds on the ASP.NET Core Structured Logging Without Sensitive-Data Sprawl article without duplicating its ILogger and event-design guidance, concentrating instead on data minimization before emission, provider/export trust, collector and storage access, tenant separation, retention, degraded observability, and the boundary between operational logs and governance evidence.

Replay Protection and Bounded-Use Authority continues from narrow authority into stateful execution-boundary enforcement. It covers one-time and bounded-use grants, atomic consumption, multi-instance and restart behavior, durable replay state, failure windows, request idempotency, and why replay resistance is not an exactly-once execution guarantee.

Run the Replay Protection and Bounded-Use Authority sample to compare a deterministic check-then-act race with atomic in-process consumption, then use the intermediate concurrency lab to repair and extend the boundary.

Signing, Verification, Key Custody, and Tamper Evidence adds the cryptographic evidence boundary. It separates hashes from signatures, signing from verification and authorization, key custody from ordinary application configuration, normal rotation from compromise, and tamper evidence from tamper prevention.

Software Supply-Chain Integrity for .NET Repositories extends those trust questions into the process that creates and publishes software. It uses current Learning, AsiBackbone, and NetCoreApplicationTemplate repository practices as selective specimens for workflow permissions, SHA-pinned actions, dependency management, locked restore, package validation, SBOMs, attestations, publication authority, and precise provenance claims.

Threat Modeling as Architecture Reasoning is the synthesis tutorial for the section. It starts from system and authority flows, then teaches learners to identify assets, trust changes, abuse paths, unprotected assumptions, mitigations, verification invariants, and residual risk without confusing the exercise with a penetration test, scanner, checklist, or security certification.

Security Themes

Current and future material may examine:

Approval Is Not Unlimited Authority

A recurring security principle in the foundational material is:

Allowed Decision
   ≠
Broad Standing Permission

An operation that has been approved may still benefit from authority that is:

  • Narrow
  • Bound to a specific actor
  • Bound to a specific operation
  • Bound to a specific resource
  • Bound to an intended executor or audience
  • Time-limited
  • Revalidated before execution

This concept is explored in:

Scoped Capability and Host-Owned Execution

Security and AI-Assisted Systems

For AI-assisted workflows, prompt instructions are not treated as security controls.

The central boundary remains:

The model may propose. The host retains execution authority.

Host-side code remains responsible for:

  • Tool allowlists
  • Argument validation
  • Authoritative context
  • Policy evaluation
  • Secret ownership
  • Destination and egress controls
  • Capability validation
  • Real-world execution

See:

Governed AI Tool Gateway

Working References

Security-related implementation examples can be studied in:

The first focuses on governed decision and execution boundaries.

The second provides a broader ASP.NET Core reference architecture with secure application defaults and operational controls.

Scope

The material in this section is educational.

It does not constitute:

  • A security certification
  • A penetration test
  • A formal threat model
  • A compliance assessment
  • A guarantee that a demonstrated pattern is sufficient for production

Application-specific security analysis remains necessary.

Current Status

The Security section now has focused material for trust boundaries and least privilege, secret handling, secure logging, replay protection and bounded-use authority, signing/verification with key-custody and tamper-evidence boundaries, software supply-chain integrity, and threat modeling as architecture reasoning. Together they establish a security architecture path from identifying where trust changes, to reducing the lifetime and distribution of authority-bearing secrets, to deciding what data may safely cross into observability systems, to preserving narrow authority, to controlling whether authority may be consumed again, to deciding what cryptographic evidence can safely establish, to applying the same trust-boundary reasoning to source, dependencies, CI, generated artifacts, and publication, and finally to synthesizing those concerns into explicit abuse paths, mitigations, verification invariants, and residual risk.

The dedicated Milestone 7 Security and Trust Architecture foundation is complete. Future material may deepen individual threat-model exercises or application-specific examples without implying that a Learning diagram is a production security assessment.

Use the Foundational Tutorials to connect these security concepts to the existing governed-execution learning path.


Read it. Run it. Question it. Improve it.