Skip to main content

Security Assurance Case and Security Model

Executive Summary

HVE Core is an enterprise prompt engineering framework for GitHub Copilot consisting of:

  • Markdown-based prompt artifacts (instructions, prompts, agents, skills)
  • PowerShell automation scripts for linting and validation
  • GitHub Actions CI/CD workflows
  • VS Code extension packaging utilities
  • The Mural skill runtime: a Python CLI and embedded stdio MCP server with an OAuth client, local token store, and outbound HTTP egress to the Mural REST API

Most of the repository contains no runtime services, databases, or user data storage and is targeted primarily by supply chain and developer workflow threats. The Mural skill is the exception: it executes locally, holds OAuth tokens in the OS keyring (or an encrypted file fallback), and makes authenticated requests to a third-party SaaS. Threats specific to that runtime are analyzed in the OAuth Authentication Threats and MCP Server Trust Analysis sections. Security relies on defense-in-depth with 20+ automated controls validated through CI/CD pipelines.

Security Posture Overview

CategoryStatusControl CountAutomated
Supply Chain SecurityStrong8 controls100%
Code QualityStrong5 controls100%
Access ControlStrong4 controls100%
Vulnerability ManagementStrong3 controls100%
Total20+20100%

Contents

System Description

Components

HVE Core contains five primary component categories:

  1. Prompt Engineering Artifacts (.github/instructions/, .github/prompts/, .github/agents/, .github/skills/)

    • Markdown files with YAML frontmatter
    • Consumed by GitHub Copilot during development sessions
    • No executable code execution within prompts
  2. PowerShell Scripts (scripts/)

    • Linting and validation utilities
    • CI/CD automation support
    • No external network connections except documented tool downloads
  3. GitHub Actions Workflows (.github/workflows/)

    • PR validation pipeline
    • Security scanning (CodeQL, dependency review)
    • Release automation
  4. VS Code Extension (extension/)

    • Packaging configuration
    • Extension manifest
    • No telemetry or data collection
  5. Mural Skill Runtime (.github/skills/experimental/mural/)

Data Flow

flowchart TD
subgraph DEV["Developer Workstation"]
ARTIFACTS["HVE Core Artifacts<br/>(.instructions.md, .prompt.md, etc)"]
IDE["VS Code IDE"]
COPILOT["GitHub Copilot Extension"]
LOCALMCP["Local MCP Servers<br/>(optional)"]
SCRIPTS["Local Scripts<br/>(PowerShell)"]
DEVCON["Dev Container<br/>(optional)"]
end

subgraph GITHUB["GitHub Platform (Network Boundary)"]
LLMAPI["LLM API Service"]
REMOTEMCP["GitHub MCP Server"]
REPO["Repository"]
ACTIONS["GitHub Actions Runners"]
SCANNING["Security Scanning<br/>(CodeQL, Dep Review)"]
end

ARTIFACTS -->|"read into context"| COPILOT
IDE --> COPILOT
COPILOT -->|"prompts + context (HTTPS)"| LLMAPI
LLMAPI -->|"suggestions"| COPILOT
COPILOT <-->|"tool calls"| LOCALMCP
COPILOT <-->|"tool calls (HTTPS)"| REMOTEMCP
DEVCON -.->|"contains"| IDE
DEVCON -.->|"contains"| SCRIPTS
DEV -->|"git push"| REPO
REPO -->|"triggers"| ACTIONS
ACTIONS --> SCANNING

Security Inheritance from GitHub Copilot

HVE Core artifacts are consumed by GitHub Copilot, which provides foundational security:

Inherited ControlProviderHVE Core Responsibility
LLM input/output filteringGitHub CopilotNone; artifacts are Copilot inputs
Token encryption in transitGitHub CopilotNone; handled by Copilot infrastructure
Organization policy enforcementGitHub CopilotDocument compatible policy options
Audit loggingGitHub CopilotNone; uses Copilot audit streams
SOC 2 Type II complianceGitHubNone; infrastructure control

Trust Boundaries

Boundary Diagram

┌──────────────────────────────────────────────────────────────────────────────┐
│ TRUST BOUNDARY: Repository Contents │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Controlled Artifacts │ │
│ │ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────────┐ │ │
│ │ │ Prompts │ │ Scripts │ │ Workflows │ │ Documentation │ │ │
│ │ │ .md files │ │ .ps1 files │ │ .yml files │ │ .md files │ │ │
│ │ └────────────┘ └────────────┘ └────────────┘ └────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────────▼────────────────────────────────────┐ │
│ │ TRUST BOUNDARY: CI/CD Pipeline │ │
│ │ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────────┐ │ │
│ │ │ PR Valid. │ │ CodeQL │ │ Dep Review │ │ Release │ │ │
│ │ │ Workflow │ │ Analysis │ │ Workflow │ │ Workflow │ │ │
│ │ └────────────┘ └────────────┘ └────────────┘ └────────────────┘ │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────┼──────────────────────────────────┐
│ ▼ │
│ TRUST BOUNDARY: External Dependencies │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌──────────────┐ │
│ │ npm │ │ GitHub │ │ PowerShell │ │ Third-party │ │
│ │ Packages │ │ Actions │ │ Gallery │ │ MCP Servers │ │
│ └────────────┘ └────────────┘ └────────────┘ └──────────────┘ │
└────────────────────────────────────────────────────────────────────┘

Boundary Descriptions

BoundaryAssets ProtectedControls Enforced
Repository ContentsSource code, prompts, scriptsCODEOWNERS, branch protection, PR review
CI/CD PipelineBuild artifacts, security scan resultsMinimal permissions, dependency pinning
External Dependenciesnpm packages, Actions, MCP serversDependency review, staleness monitoring
Dev ContainerDevelopment environment, toolingSHA256 verification, first-party features
Mural Skill RuntimeOAuth tokens, Mural API egressOS keyring / 0600 token cache, PKCE, loopback redirect URI

Security Model

This section documents threats using STRIDE methodology (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege), supplemented with AI-specific and Responsible AI threat categories.

STRIDE Threats

S-1: Compromised GitHub Action via Tag Substitution

FieldValue
CategorySpoofing
AssetCI/CD pipeline integrity
ThreatAttacker compromises upstream Action repository and replaces tag with malicious code
LikelihoodMedium (documented supply chain attacks exist)
ImpactHigh (full CI/CD compromise, secret exfiltration)
MitigationsDependency pinning for all Actions, staleness monitoring, CodeQL scanning
Residual RiskLow (SHA immutable; requires GitHub infrastructure compromise)
StatusMitigated

S-2: npm Package Substitution Attack

FieldValue
CategorySpoofing
AssetBuild dependencies
ThreatMalicious package published with same name or typosquatting
LikelihoodMedium (common attack vector)
ImpactMedium (limited runtime exposure; primarily build-time)
MitigationsPackage-lock.json integrity, npm audit, dependency review
Residual RiskLow
StatusMitigated

T-1: Unauthorized Modification of Security Controls

FieldValue
CategoryTampering
AssetWorkflow files, security scripts
ThreatAttacker with write access disables security checks
LikelihoodLow (requires compromised maintainer account)
ImpactHigh (security controls bypassed)
MitigationsCODEOWNERS enforcement, branch protection, PR review requirements
Residual RiskLow
StatusMitigated

T-2: Malicious Prompt Injection via PR

FieldValue
CategoryTampering
AssetPrompt artifacts
ThreatContributor submits prompt with hidden malicious instructions
LikelihoodMedium (social engineering possible)
ImpactMedium (affects Copilot behavior for consumers)
MitigationsPR review, CODEOWNERS, frontmatter validation
Residual RiskMedium (semantic analysis not automated)
StatusPartially Mitigated

R-1: Untraceable Configuration Changes

FieldValue
CategoryRepudiation
AssetRepository configuration
ThreatAdmin makes security-impacting changes without audit trail
LikelihoodLow (GitHub provides audit logs)
ImpactMedium (accountability gap)
MitigationsGitHub audit log, branch protection audit events
Residual RiskLow
StatusMitigated

I-1: Secret Exposure in Logs or Artifacts

FieldValue
CategoryInformation Disclosure
AssetRepository secrets, tokens
ThreatSecrets accidentally logged or included in build artifacts
LikelihoodLow (minimal secret usage)
ImpactHigh (credential compromise)
MitigationsGitHub secret masking, GitHub secret scanning, minimal secret usage
Residual RiskLow
StatusMitigated

I-2: Sensitive Information in Prompt Artifacts

FieldValue
CategoryInformation Disclosure
AssetPrompt files, documentation
ThreatInternal URLs, API keys, or proprietary patterns exposed in prompts
LikelihoodLow (review process catches obvious cases)
ImpactMedium (information leakage)
MitigationsPR review, GitHub secret scanning, documentation guidelines
Residual RiskLow
StatusMitigated

D-1: CI/CD Resource Exhaustion

FieldValue
CategoryDenial of Service
AssetGitHub Actions minutes, runner availability
ThreatMalicious PR triggers expensive workflows repeatedly
LikelihoodLow (requires PR creation privileges)
ImpactLow (billing impact, temporary delays)
MitigationsWorkflow approval for first-time contributors, concurrency limits
Residual RiskLow
StatusMitigated

D-2: Dependency Confusion Blocking Builds

FieldValue
CategoryDenial of Service
AssetBuild pipeline
ThreatAttacker publishes conflicting package preventing clean builds
LikelihoodLow
ImpactMedium (build failures)
MitigationsPackage-lock.json, scoped packages
Residual RiskLow
StatusMitigated

E-1: Workflow Token Abuse

FieldValue
CategoryElevation of Privilege
AssetGitHub Actions tokens
ThreatCompromised workflow step uses GITHUB_TOKEN beyond intended scope
LikelihoodLow (minimal permissions declared)
ImpactMedium (depends on token permissions)
MitigationsMinimal permissions pattern, persist-credentials: false, inline comments on elevated permissions
Residual RiskLow
StatusMitigated with Accepted Risk
Accepted Risk: Token-Permissions Alerts

OpenSSF Scorecard Token-Permissions flags security-events: write as overly broad across workflow files. This permission is required for github/codeql-action/upload-sarif and github/codeql-action/analyze to upload SARIF results to the repository Security tab. The security-events scope grants access only to code scanning alert data and cannot modify repository content, settings, or secrets.

Scorecard's own scorecard.yml requires the same permission to publish results, creating a circular dependency in the token-permissions check.

Affected workflow jobs:

WorkflowJob
release-stable.ymldependency-pinning-scan
release-stable.ymlgitleaks-scan
pr-validation.ymldependency-pinning-check
pr-validation.ymlworkflow-permissions-check
pr-validation.ymlgitleaks-scan
pr-validation.ymlcodeql
security-scan.ymlcodeql
weekly-security-maintenance.ymlvalidate-pinning
weekly-security-maintenance.ymlcodeql-analysis

Defense-in-depth controls:

  • All workflows declare job-level permissions, not workflow-level
  • persist-credentials: false set on all checkout steps
  • Inline YAML comments document each security-events: write declaration
  • SARIF upload is the only write operation performed under this permission

E-2: Branch Protection Bypass

FieldValue
CategoryElevation of Privilege
AssetProtected branches
ThreatAdmin bypasses branch protection to merge unauthorized changes
LikelihoodLow (requires admin access and intentional bypass)
ImpactHigh (security controls circumvented)
MitigationsBranch protection rules, audit logging, "Do not allow bypassing"
Residual RiskLow
StatusMitigated

Dev Container Threats

These threats address risks in the development container configuration used for Codespaces and local container development.

DC-1: Feature Tag Substitution Attack

FieldValue
CategorySpoofing
AssetDev container configuration
ThreatMalicious update to a feature version tag introduces compromised tooling
LikelihoodLow (first-party Microsoft features only)
ImpactMedium (development environment compromise)
MitigationsFirst-party features only, PR review of devcontainer.json changes
Residual RiskLow (Microsoft-maintained features with release controls)
StatusMitigated

DC-2: Lifecycle Script Tampering

FieldValue
CategoryTampering
AssetContainer initialization scripts
ThreatAttacker modifies on-create.sh or post-create.sh to inject code
LikelihoodLow (requires PR approval, CODEOWNERS protection)
ImpactHigh (arbitrary code execution in dev environment)
MitigationsCODEOWNERS, PR review, branch protection
Residual RiskLow
StatusMitigated

DC-3: External Binary Download Compromise

FieldValue
CategorySpoofing
AssetExternal tools (gitleaks, shellcheck)
ThreatCompromised download source serves malicious binary
LikelihoodVery Low (SHA256 verification enforced)
ImpactHigh (malicious tooling in dev environment)
MitigationsSHA256 checksum verification in on-create.sh
Residual RiskVery Low (cryptographic verification prevents substitution)
StatusMitigated

AI-Specific Threats

These threats address risks specific to AI/ML systems as documented by OWASP LLM Top 10 and MITRE ATLAS.

AI-1: Prompt Injection via Artifact Content

FieldValue
CategoryLLM01: Prompt Injection (OWASP)
AssetCopilot behavior, downstream code generation
ThreatMalicious instructions embedded in prompt artifacts manipulate Copilot
LikelihoodMedium
ImpactMedium (affects code generation quality and safety)
MitigationsPR review, CODEOWNERS, clear artifact structure guidelines
Residual RiskMedium (inherent to prompt-based systems)
StatusPartially Mitigated

AI-2: Insecure Output Handling

FieldValue
CategoryLLM02: Insecure Output Handling (OWASP)
AssetGenerated code
ThreatCopilot generates insecure code patterns based on prompt guidance
LikelihoodMedium
ImpactVariable (depends on consumer's review practices)
MitigationsSecurity-focused prompts, consumer code review responsibility
Residual RiskMedium (HVE Core provides guidance, not enforcement)
StatusAccepted with Documentation

AI-3: Training Data Poisoning (Indirect)

FieldValue
CategoryLLM03: Training Data Poisoning (OWASP)
AssetCopilot model behavior
ThreatMalicious patterns in HVE Core influence Copilot training
LikelihoodVery Low (Copilot training controlled by GitHub)
ImpactLow (HVE Core is small input to large training corpus)
MitigationsOut of scope; GitHub controls training pipeline
Residual RiskVery Low
StatusAccepted (Outside Control)

AI-4: Model Denial of Service

FieldValue
CategoryLLM04: Model Denial of Service (OWASP)
AssetCopilot availability
ThreatCrafted prompts cause excessive resource consumption in Copilot
LikelihoodVery Low
ImpactLow (Copilot has rate limiting)
MitigationsCopilot's built-in rate limiting and resource management
Residual RiskVery Low
StatusAccepted (Outside Control)

AI-5: Supply Chain Vulnerabilities (LLM-Specific)

FieldValue
CategoryLLM05: Supply-Chain Vulnerabilities (OWASP)
AssetMCP server integrations
ThreatCompromised MCP server provides malicious context to Copilot
LikelihoodLow (first-party servers) to Medium (third-party)
ImpactMedium (affects code generation context)
MitigationsMCP server trust analysis, documentation of trust levels
Residual RiskLow to Medium depending on server
StatusMitigated with Documentation

See MCP Server Trust Analysis for Mural-skill-specific OAuth credential and token-cache leakage controls.

AI-6: Sensitive Information Disclosure

FieldValue
CategoryLLM06: Sensitive Information Disclosure (OWASP)
AssetUser context, code patterns
ThreatPrompt artifacts cause Copilot to expose sensitive patterns
LikelihoodLow
ImpactMedium
MitigationsConsumer responsibility; prompt guidelines discourage sensitive data
Residual RiskLow
StatusMitigated with Documentation

AI-7: Insecure Plugin Design

FieldValue
CategoryLLM07: Insecure Plugin Design (OWASP)
AssetMCP server integrations, VS Code extension
ThreatExtension or MCP server allows unauthorized operations
LikelihoodLow (extension has no sensitive operations)
ImpactLow to Medium
MitigationsMinimal extension functionality, MCP server trust documentation
Residual RiskLow
StatusMitigated

AI-8: Excessive Agency

FieldValue
CategoryLLM08: Excessive Agency (OWASP)
AssetAutonomous Copilot operations
ThreatPrompts grant Copilot excessive autonomous capabilities
LikelihoodLow (prompts are guidance, not permissions)
ImpactVariable
MitigationsCopilot's built-in guardrails, tool confirmation dialogs
Residual RiskLow
StatusMitigated (Copilot Controls)

AI-9: Overreliance

FieldValue
CategoryLLM09: Overreliance (OWASP)
AssetCode quality, developer decision-making
ThreatDevelopers accept Copilot output without verification
LikelihoodMedium
ImpactVariable (depends on context)
MitigationsDocumentation emphasizing review, security-focused prompts
Residual RiskMedium (behavioral, not technical)
StatusAccepted with Documentation

AI-10: Model Theft (N/A)

FieldValue
CategoryLLM10: Model Theft (OWASP)
AssetN/A
ThreatHVE Core does not host or distribute models
LikelihoodN/A
ImpactN/A
MitigationsN/A
Residual RiskN/A
StatusNot Applicable

AI-11: AML.T0043 Craft Adversarial Data (MITRE ATLAS)

FieldValue
CategoryMITRE ATLAS AML.T0043
AssetPrompt artifacts
ThreatAdversary crafts prompt content to cause model misbehavior
LikelihoodMedium
ImpactMedium
MitigationsPR review process, CODEOWNERS, artifact structure validation
Residual RiskMedium
StatusPartially Mitigated

AI-12: AML.T0048 Evade ML Model (MITRE ATLAS)

FieldValue
CategoryMITRE ATLAS AML.T0048
AssetSecurity recommendations in prompts
ThreatPrompts designed to cause Copilot to bypass security guidance
LikelihoodLow
ImpactMedium
MitigationsSecurity-first prompt design principles, review process
Residual RiskLow
StatusMitigated

For runtime supply-chain posture of locally executed MCP servers, see the MCP Server Trust Analysis runtime trust table.

Responsible AI Threats

These threats address ethical and responsible AI considerations aligned with Microsoft's Responsible AI principles.

RAI-1: Fairness - Biased Code Generation Patterns

FieldValue
CategoryFairness (Responsible AI)
AssetGenerated code quality across contexts
ThreatPrompts inadvertently favor certain coding styles or exclude accessibility
LikelihoodMedium
ImpactMedium (affects inclusivity of generated code)
MitigationsInclusive language guidelines, accessibility-aware prompts
Residual RiskMedium
StatusPartially Mitigated

RAI-2: Reliability - Inconsistent Prompt Behavior

FieldValue
CategoryReliability & Safety (Responsible AI)
AssetPrompt consistency
ThreatSame prompt produces significantly different outputs
LikelihoodMedium (inherent to LLMs)
ImpactLow to Medium
MitigationsStructured prompts, explicit instructions, testing guidance
Residual RiskMedium (LLM behavior inherently variable)
StatusAccepted with Documentation

RAI-3: Privacy - Context Leakage via Prompts

FieldValue
CategoryPrivacy & Security (Responsible AI)
AssetDeveloper context, code patterns
ThreatPrompts cause Copilot to surface or infer private information
LikelihoodLow
ImpactMedium
MitigationsPrivacy-conscious prompt design, consumer guidelines
Residual RiskLow
StatusMitigated with Documentation

RAI-3a: Privacy - M365 Transcript Data Materialization

FieldValue
CategoryPrivacy & Security (Responsible AI)
AssetMeeting transcripts, customer confidential data, PII
ThreatThe meeting-analyst agent retrieves M365 transcripts containing sensitive data and writes them to local files in .copilot-tracking/. Data may be exposed through accidental commits (git add -f), gitignore misconfiguration, shared Codespaces, CI/CD logs, or unencrypted disk access.
LikelihoodMedium (users may not recognize transcript sensitivity; gitignore is the only barrier)
ImpactHigh (customer confidential data, PII, trade secrets)
MitigationsGitignore for .copilot-tracking/, agent-level data sensitivity notice and pre-flight classification prompt, anonymization guidance in agent instructions, data retention cleanup at handoff, documentation in threat model and agent catalog
Residual RiskMedium (gitignore is not a security control; user awareness is behavioral)
StatusPartially Mitigated with Documentation

RAI-4: Inclusiveness - Exclusionary Language in Artifacts

FieldValue
CategoryInclusiveness (Responsible AI)
AssetPrompt artifacts, documentation
ThreatLanguage in prompts excludes or marginalizes user groups
LikelihoodLow (writing style guidelines address this)
ImpactMedium (affects adoption and trust)
MitigationsInclusive writing guidelines, spell check, PR review
Residual RiskLow
StatusMitigated

RAI-5: Transparency - Undocumented Prompt Behavior

FieldValue
CategoryTransparency (Responsible AI)
AssetUser understanding of system behavior
ThreatPrompts cause unexpected Copilot behavior not explained to users
LikelihoodMedium
ImpactLow to Medium
MitigationsClear documentation, explicit prompt descriptions in frontmatter
Residual RiskLow
StatusMitigated

RAI-6: Accountability - Unclear Responsibility for Generated Code

FieldValue
CategoryAccountability (Responsible AI)
AssetLiability and responsibility clarity
ThreatAmbiguity about who is responsible for Copilot-generated code issues
LikelihoodMedium (common confusion)
ImpactMedium
MitigationsDocumentation clarifying HVE Core provides guidance only
Residual RiskLow
StatusMitigated with Documentation

RAI-7: Human Oversight - Automated Changes Without Review

FieldValue
CategoryHuman Oversight (Responsible AI)
AssetCode quality, security
ThreatPrompts encourage accepting Copilot suggestions without review
LikelihoodLow (prompts emphasize review)
ImpactVariable
MitigationsPrompts include review reminders, security-conscious patterns
Residual RiskLow
StatusMitigated

RAI-8: Value Alignment - Prompts Conflicting with Organizational Values

FieldValue
CategoryValue Alignment (Responsible AI)
AssetOrganizational trust
ThreatPrompt artifacts conflict with consumer organization's values
LikelihoodLow
ImpactMedium (reputational)
MitigationsGeneral-purpose prompts, customization guidance for consumers
Residual RiskLow
StatusMitigated with Documentation

RAI-9: Proportionality - Overly Aggressive Automation

FieldValue
CategoryProportionality (Responsible AI)
AssetDeveloper autonomy
ThreatPrompts push Copilot toward excessive automation reducing human judgment
LikelihoodLow
ImpactMedium
MitigationsHuman-in-the-loop design patterns in prompts
Residual RiskLow
StatusMitigated

RAI-10: Contestability - No Mechanism to Challenge AI Decisions

FieldValue
CategoryContestability (Responsible AI)
AssetUser agency
ThreatUsers cannot override or question Copilot behavior influenced by prompts
LikelihoodLow (Copilot suggestions are optional)
ImpactLow
MitigationsCopilot's non-mandatory nature, edit/reject options built-in
Residual RiskVery Low
StatusMitigated (Copilot Controls)

RAI-11: Societal Impact - Deskilling Developers

FieldValue
CategorySocietal Impact (Responsible AI)
AssetDeveloper skill development
ThreatOver-reliance on AI-assisted coding reduces skill development
LikelihoodMedium (industry-wide concern)
ImpactLow for HVE Core specifically
MitigationsPrompts emphasize learning and understanding, not just output
Residual RiskMedium (societal, not technical)
StatusAccepted with Documentation

RAI-12: Environmental Impact - Compute Resource Awareness

FieldValue
CategoryEnvironmental Impact (Responsible AI)
AssetCompute resources
ThreatInefficient prompts cause unnecessary model computation
LikelihoodLow
ImpactLow (marginal compute impact)
MitigationsEfficient prompt design guidelines
Residual RiskVery Low
StatusAccepted

RAI-13: Misinformation - Prompts Generating Incorrect Information

FieldValue
CategoryMisinformation (Responsible AI)
AssetDocumentation and code accuracy
ThreatPrompts cause Copilot to generate plausible but incorrect content
LikelihoodMedium (LLM hallucination is known issue)
ImpactMedium
MitigationsVerification prompts, citation requirements in prompt guidelines
Residual RiskMedium (inherent LLM limitation)
StatusPartially Mitigated

OAuth Authentication Threats

These threats address risks specific to the OAuth 2.0 Authorization Code + PKCE flow used by the Mural skill and apply to any future skill that authenticates against a third-party authorization server using a loopback redirect URI on the developer workstation.

The catalog uses an extended 11-row format that adds Source (verbatim citation), Trust Boundary Crossed, and Detection to the standard STRIDE row template.

Mural-specific facts are sourced from https://developers.mural.co/public/docs/oauth (fetched 2026-05-10).

The verbatim quotes and validation log are recorded in .copilot-tracking/research/2026-05-10/oauth-stride-threat-model-validation-research.md.

External standards are cited inline.

Mural documentation contradiction: Mural's OAuth doc narrative claims refresh tokens are rotated, but the documented JSON response schema and reference paragraph confirm they are NOT ({ "access_token": ..., "expires_in": ... } only; "You can reuse your refresh_token as many times as you need"). The schema and reference paragraph are authoritative. OA-11 below is built on the verified non-rotation behavior; do not be misled by Mural's narrative.

FieldValue
CategorySpoofing
AssetUser credentials, OAuth grant decision
ThreatAttacker directs the user to a look-alike Mural consent page (typosquatted domain or DNS hijack) and harvests credentials or coerces an OAuth grant for an attacker-controlled client
LikelihoodLow (requires user-side browser deception or DNS attack)
ImpactHigh (account takeover; attacker-issued tokens with full delegated scope)
MitigationsSkill constructs the authorization URL from a hardcoded constant (https://app.mural.co/api/public/v1/authorization/oauth2/); HTTPS enforced; user instructed to verify URL bar before consenting; client_id is non-secret
Residual RiskLow (deception happens outside the skill's trust boundary; relies on user vigilance and OS DNS integrity)
StatusMitigated with Documentation
SourceRFC 6819 §4.1.4 (Threat: End-User Credentials Phished); MITRE ATT&CK T1539 (Steal Web Session Cookie); Mural authorization endpoint verbatim: "Authorization URL: https://app.mural.co/api/public/v1/authorization/oauth2/"
Trust Boundary CrossedBrowser ↔ Mural Authorization Server
DetectionOut of band (Mural account-side anomaly review at https://app.mural.co/account/api); the local skill cannot detect this

OA-2: Authorization Server Mix-Up via Missing iss Parameter

FieldValue
CategorySpoofing
AssetAuthorization-code-to-token exchange integrity
ThreatIf the skill ever supports more than one authorization server, an attacker AS that the user has previously authorized could redirect a code from itself to Mural's token endpoint (or vice versa) and the client cannot distinguish the issuer because Mural does not return RFC 9207 iss
LikelihoodVery Low for current single-AS skill design; Medium if multi-AS support is added
ImpactHigh (cross-AS token confusion; attacker-controlled token usable against legitimate AS)
MitigationsSkill is single-AS by design; per-request state enforcement (skill _run_login L2200, L2237) binds callback to issuing request; PKCE code_verifier (RFC 7636) cryptographically binds the code to this client and authorization request; do not add a second AS without first implementing RFC 9207 issuer validation or equivalent per-AS state-namespace
Residual RiskLow for current design; would become Medium if multi-AS is added before mitigation
StatusMitigated by Design (single-AS skill)
SourceRFC 9207 §1 (OAuth 2.0 Authorization Server Issuer Identification); RFC 9700 §4.4 (AS Mix-Up); Mural callback verified to expose code + state only (no iss): "https://cleverexample.com/oauth/callback?code=:code&state=:state"
Trust Boundary CrossedBrowser ↔ Mural Authorization Server; Skill Process ↔ Mural Token Endpoint
DetectionCross-AS code rejection logged at the wrong AS's token endpoint (invalid_grant or invalid_client); audit AS-side for unexpected token requests

OA-3: Loopback Redirect URI Hijack

FieldValue
CategorySpoofing
AssetAuthorization code in transit from browser to skill loopback handler
ThreatA co-resident process on the developer workstation binds the loopback port before the skill or races the bind, intercepting the authorization code delivered to http://127.0.0.1:<port>/callback
LikelihoodLow on single-user workstations; Medium on shared dev hosts and Codespaces with port forwarding
ImpactHigh (intercepted code can be exchanged for tokens until single-use enforcement triggers; PKCE prevents exchange but only if the attacker lacks the verifier)
MitigationsLoopback handler binds before authorization request is opened (_start_loopback_server L2087); ephemeral port; PKCE binds the code to this client's code_verifier so an interceptor without the verifier cannot exchange the code; redirect URI validated against an allow-list (_validate_redirect_uri L2110, _resolve_redirect_uri L2148)
Residual RiskLow (PKCE is the load-bearing control; the verifier is held only in-process and never logged via _REDACT_KEYS)
StatusMitigated
SourceRFC 8252 §7.3 (Loopback Interface Redirection); RFC 7636 §1 (PKCE motivation: authorization code interception attack); CAPEC-21 (Exploitation of Trusted Identifiers)
Trust Boundary CrossedBrowser ↔ Skill Process (loopback)
DetectionEADDRINUSE on bind; loopback handler logs unexpected callbacks; second invalid_grant ("already used") on token exchange attempt

OA-4: Client Impersonation via Leaked client_secret

FieldValue
CategorySpoofing
AssetMural-issued client_secret for the registered OAuth application
ThreatMural documents only the confidential-client OAuth flow (no public-client / PKCE-only path), so the skill must hold a client_secret. If that secret leaks (env-var dump, log capture, file-permission downgrade, accidental commit, screen share), an attacker can impersonate the registered client and complete token exchanges for any user-issued authorization code
LikelihoodLow (skill enforces 0600 file permissions and redacts secrets from logs)
ImpactCritical (full client impersonation; attacker can mint tokens for any user who completes the OAuth dance against the legitimate AS)
Mitigations_check_credential_file_perms L530 enforces 0600 mode on the credential file; _REDACT_KEYS L140 includes client_secret and is exercised by _redact() L1332 across all log-emission paths; secret never written to stdout; documented rotation runbook in skill SECURITY.md G-EOP-1; lint rule prohibits hardcoded credentials
Residual RiskLow (depends on _REDACT_KEYS test coverage; Q3=a parallel work item adds the missing test_redaction.py to lock the contract)
StatusMitigated
SourceRFC 6749 §2.3.1 (Client Password); RFC 6819 §4.1.1 (Threat: Obtaining Client Secrets); Mural verbatim: "client_secret: The secret key you copied when you created your app in Mural."
Trust Boundary CrossedSkill Process ↔ Token Cache File; Skill Process ↔ Log Sinks
DetectionFile-mode audit (_check_credential_file_perms); gitleaks pre-commit; CodeQL secret-pattern scanning; Mural-side anomaly detection on token-request volume

OA-5: Authorization Request Tampering / CSRF (Missing state)

FieldValue
CategoryTampering
AssetAuthorization-request integrity; binding of callback to legitimate user session
ThreatAttacker tricks the user's browser into issuing a forged callback containing an attacker-issued authorization code, causing the skill to bind the user's local session to an attacker's Mural account (cross-account login CSRF) or to honor an attacker-tampered redirect_uri / scope
LikelihoodLow when skill enforces state; Medium if state enforcement is dropped because Mural marks state optional
ImpactHigh (cross-account binding; data exfiltration to attacker's Mural workspace; or scope upgrade)
MitigationsSkill MUST enforce state regardless of Mural's "optional" classification; _run_login generates and verifies state at L2200 and L2237; redirect_uri is allow-listed via _validate_redirect_uri L2110; scope is constructed from a hardcoded constant; PKCE binds the code to the client
Residual RiskLow (assuming state enforcement remains; regression test recommended; see Phase 5 follow-on work)
StatusMitigated
SourceRFC 6749 §10.12 (Cross-Site Request Forgery); OAuth 2.1 §4.1.1 (state REQUIRED); RFC 9700 §4.7 (CSRF on Redirect URI); Mural verbatim (note marks state as optional, contradicting OAuth 2.1): "state: A value that you randomly generate and store. (This is optional, but recommended.)"
Trust Boundary CrossedBrowser ↔ Skill Process (loopback)
Detectionstate mismatch in _LoopbackHandler callback; logged as security event (state value itself is not logged; only the mismatch fact)

OA-6: Authorization Code Replay

FieldValue
CategoryTampering
AssetOne-time-use guarantee on the authorization code
ThreatAttacker who observes an authorization code (in browser history, referer header, log scrape, or screen capture) attempts to exchange it a second time at the token endpoint
LikelihoodLow (Mural enforces single-use server-side; PKCE additionally requires the verifier)
ImpactHigh if replay succeeds (attacker tokens issued to attacker client)
MitigationsMural enforces single-use codes; PKCE code_verifier binds the exchange to this client; skill exchanges the code immediately on receipt and never retains it; code is in _REDACT_KEYS so it is never logged; authorization-code TTL (V8) is undocumented but bounded by single-use and the prompt-revoke runbook
Residual RiskVery Low
StatusMitigated
SourceRFC 6819 §4.4.1.1 (Threat: Eavesdropping or Leaking Authorization Codes); RFC 7636 §1 (PKCE); Mural verbatim: "If the provided authorization grant (code) or refresh token is invalid, already used, expired, revoked, does not match the redirect_uri used in the authorization request, or was issued to another client, you will receive ... invalid_grant"
Trust Boundary CrossedSkill Process ↔ Mural Token Endpoint
Detectioninvalid_grant with "already used" semantics on second exchange; monitor token-endpoint error rate

OA-7: OAuth Audit Trail Gaps (Repudiation)

FieldValue
CategoryRepudiation
AssetOAuth event audit log (login, refresh, revoke, scope grant)
ThreatA user repudiates an OAuth grant or token-issued action because the skill emits no client-side audit record, and the Mural-side audit trail is the only source of truth
LikelihoodMedium (the skill writes operational logs but does not emit a structured audit event for OAuth lifecycle transitions)
ImpactMedium (forensic investigation must rely entirely on Mural-side logs; correlation with local client activity is impossible)
MitigationsSkill emits structured logger events for login_completed, token_refreshed, token_revoked; Mural-side audit log retrieved via account-side review at https://app.mural.co/account/api; correlation via per-request state value (logged as opaque ID, not value)
Residual RiskMedium (client-side audit log is operator-managed and not centralized; recommend SIEM forwarding for high-assurance deployments; see Phase 5 follow-on)
StatusPartially Mitigated
SourceRFC 6819 §5.1.4 (Audit and Trail Threats); NIST SP 800-92 (Guide to Computer Security Log Management); OWASP ASVS V8.3 (Logging and Monitoring)
Trust Boundary CrossedSkill Process ↔ Log Sinks; Skill Process ↔ Mural API
DetectionOut-of-band review of Mural API audit log; gap analysis between client-side log timestamps and Mural-side events

OA-8: Token / Secret Leakage via Application Logs

FieldValue
CategoryInformation Disclosure
Assetaccess_token, refresh_token, client_secret, code, code_verifier, future id_token / assertion / client_assertion / device_code / password
ThreatA high-severity log line emits a request body, response body, header dictionary, exception traceback, or URL containing one of the sensitive fields above; the value lands in operator log files, CI logs, or remote log aggregators
LikelihoodMedium (Python developers commonly LOGGER.error("Request failed: %s", response.text) without thinking about token contents)
ImpactCritical (token reuse against Mural API for the lifetime of the token; refresh tokens are non-rotated per OA-11 and remain valid until manual revocation)
MitigationsCentralized _redact() L1332 pipes all loggable structures through _REDACT_KEYS L140; skill convention forbids direct LOGGER.* calls on response bodies / request bodies / URLs; _REDACT_KEYS test (test_redaction.py) locks the key list; instructions file mural-log-hygiene.instructions.md is mandatory reading for any skill change
Residual RiskMedium pending _REDACT_KEYS expansion (Q3=a) and audit of remaining direct LOGGER call sites (mural.py L1509, L1746, L4128, L4143, L5064, L5071, L9271; print(authorize_url) L2228; lowercase loggers L95, L103, L110)
StatusPartially Mitigated (active remediation tracked under Phase 5 follow-on work)
SourceRFC 6819 §5.1.6 (Threat: Information Leakage); RFC 9700 §2.6 (Token Storage and Handling); OWASP ASVS V7.1 (Log Content Requirements); MITRE ATT&CK T1552.001 (Credentials in Files)
Trust Boundary CrossedSkill Process ↔ Log Sinks
DetectionPre-merge gitleaks scan; static-analysis rule for LOGGER\.(debug|info|warning|error|exception)\(.*\\b(response|request|url|body|headers|token|secret|code)\\b patterns; SIEM alert on Mural-token regex in log streams

OA-9: Token Leakage via Browser Referer / History

FieldValue
CategoryInformation Disclosure
AssetAuthorization code; tokens (if ever placed in URL fragment)
ThreatAuthorization code in the redirect URL leaks via Referer header on subsequent navigation, browser history, screen-share, browser-sync, or third-party browser extension exfiltration
LikelihoodMedium (codes appear in the loopback URL by design)
ImpactLow for authorization code (single-use, PKCE-protected, immediately exchanged); Critical if access tokens were ever placed in URL
MitigationsSkill never uses implicit grant or fragment-encoded tokens (Authorization Code only); loopback handler closes the browser tab via auto-redirect to a static "you may close this window" page after callback receipt, breaking the Referer chain; PKCE neutralizes leaked code value
Residual RiskLow
StatusMitigated
SourceRFC 6819 §4.4.2.5 (Threat: Authorization Code Leakage through Counterfeit Web Site); RFC 9700 §2.1.2 (avoid implicit grant); OWASP ASVS V51.4
Trust Boundary CrossedBrowser ↔ Skill Process (loopback)
DetectionOut of band (browser-history forensics); not directly detectable by the skill

OA-10: Token Cache File Disclosure

FieldValue
CategoryInformation Disclosure
AssetPersisted access_token, refresh_token, client_secret in the on-disk credential cache
ThreatAnother local user, container co-tenant, backup process, dotfile-syncer, or accidental git add reads the credential cache file from the user's home directory
LikelihoodLow on properly configured single-user workstations; Medium in shared dev hosts, Codespaces, and dotfile repositories
ImpactCritical (refresh token grants tokens until manual revocation; non-rotated per OA-11)
Mitigations_check_credential_file_perms L530 enforces 0600 mode and refuses to load on permission widening; cache lock via _acquire_cache_lock L1121 prevents partial writes; cache path documented in skill SECURITY.md; .gitignore covers default cache locations; documented backup-exclusion guidance
Residual RiskLow (file-system-level controls; OS account compromise defeats this mitigation)
StatusMitigated
SourceRFC 9700 §2.6 (Token Storage and Handling); OWASP ASVS V8.2 (Client-Side Data Protection); MITRE ATT&CK T1555.003 (Credentials from Web Browsers: analog for cached tokens); CAPEC-509 (Kerberoasting: analog for cached credential theft)
Trust Boundary CrossedSkill Process ↔ Token Cache File
DetectionPermission-mode self-check on every read (_check_credential_file_perms); audit-log file access via OS auditd / fs_usage if enabled

OA-11: Refresh Token Theft (Long-Lived, Non-Rotated)

FieldValue
CategoryInformation Disclosure
Assetrefresh_token issued by Mural
ThreatAn attacker who exfiltrates the refresh_token (via OA-8 log leak, OA-10 file disclosure, OA-4 client_secret combined with stolen code, or out-of-band shoulder-surf) can obtain access tokens indefinitely until the user manually revokes the grant. Mural does NOT rotate refresh tokens despite their narrative documentation suggesting otherwise; verified via the response schema and the explicit "reuse" statement
LikelihoodLow (depends on a prior exfiltration vector landing successfully)
ImpactCritical (long-lived persistence; full delegated scope until manual revocation)
MitigationsRefresh token covered by _REDACT_KEYS (OA-8 control); persisted only with 0600 mode (OA-10 control); skill SECURITY.md G-EOP-1 documents the Mural-account revocation runbook (https://app.mural.co/account/api); refresh code path _apply_refresh L1597 does not log the token value; consumers warned that refresh tokens are non-rotated and that revocation is the only invalidation path
Residual RiskMedium (residual depends on user adherence to revocation runbook on suspected compromise; non-rotation is an upstream design decision the skill cannot change)
StatusPartially Mitigated (Mural-side limitation documented; client-side controls maximized)
SourceRFC 9700 §2.2.2 (Refresh Token Protection); RFC 6819 §5.2.2.3 (Refresh Token Rotation); Mural verbatim refresh-response schema: { "access_token": <TOKEN>, "expires_in": <EXPIRATION (in seconds)> } (no refresh_token field); Mural verbatim reference paragraph: "You can reuse your refresh_token as many times as you need to get a new access_token."
Trust Boundary CrossedSkill Process ↔ Token Cache File; Skill Process ↔ Mural Token Endpoint
DetectionMural-side anomaly detection on token-endpoint request frequency or geographic distribution; out-of-band review at https://app.mural.co/account/api

OA-12: PKCE Verifier Leakage or Weak Entropy

FieldValue
CategoryInformation Disclosure
AssetPKCE code_verifier (must remain secret to bind the code exchange)
ThreatVerifier leaks via log emission, weak entropy (predictable RNG), or insufficient length (fewer than 43 chars), allowing an attacker who also captured the code (OA-3 / OA-9) to exchange it
LikelihoodLow (skill uses secrets.token_urlsafe)
ImpactHigh if combined with a code interception
Mitigations_generate_pkce_pair L1307 uses secrets.token_urlsafe(64) yielding 86 URL-safe characters (well above the RFC 7636 minimum of 43); _verify_pkce L1314 enforces S256 method (the only modern method, since Mural does not document PKCE method parameters the skill assumes S256 per RFC 7636 §4.2); verifier never logged (not in any log call site) and never persisted (in-process only)
Residual RiskVery Low
StatusMitigated
SourceRFC 7636 §4.1 (Code Verifier minimum entropy 256 bits, length 43–128); RFC 7636 §7.1 (Entropy of code_verifier); RFC 9700 §2.1.1 (PKCE for all OAuth clients); Mural verbatim PKCE acknowledgment: "we support PKCE (Proof Key for Code Exchange)"; note PKCE request/response parameters are NOT documented in Mural's parameter tables, so the skill implements per RFC 7636
Trust Boundary CrossedIn-process (verifier never crosses boundary except via TLS to token endpoint)
DetectionToken-exchange invalid_grant indicates verifier mismatch; entropy regression detected by unit test on _generate_pkce_pair

OA-13: Authorization Endpoint Denial of Service

FieldValue
CategoryDenial of Service
AssetMural authorization endpoint availability for this client / user
ThreatBuggy automation or attacker triggers repeated authorization requests (loopback handler crashes mid-flow, retried in a tight loop, or login storm), consuming Mural-side rate-limit budget and locking the user out
LikelihoodLow
ImpactMedium (skill unavailable until rate-limit window resets; user may need account-side intervention)
MitigationsSingle in-flight _run_login enforced by cache lock (_acquire_cache_lock L1121); exponential backoff on retryable errors; user-initiated only (no automatic re-login on every API call); documented login cadence guidance
Residual RiskLow
StatusMitigated
SourceRFC 6819 §5.1.5.2 (Threat: Denial of Service Attacks); OWASP ASVS V11 (Business Logic Verification)
Trust Boundary CrossedSkill Process ↔ Mural Authorization Server
DetectionHTTP 429 from Mural; cache-lock contention metric

OA-14: Token Endpoint Refresh Storm

FieldValue
CategoryDenial of Service
AssetMural token endpoint availability; cached token consistency across concurrent skill invocations
ThreatConcurrent skill processes each detect the access token is expired and race to refresh; the resulting refresh storm hammers Mural's token endpoint and may produce inconsistent cached state
LikelihoodLow for single-user usage; Medium when the skill is invoked from multiple terminals or automation contexts simultaneously
ImpactLow to Medium (rate-limit penalty; brief unavailability)
MitigationsCache lock (_acquire_cache_lock L1121) serializes refresh; refresh attempt re-reads the cache after acquiring the lock to avoid duplicate refresh; access-token TTL of 900s (Mural verbatim "OAuth tokens expire after 15 minutes") sets refresh cadence; documented "do not script-loop the skill" guidance
Residual RiskLow
StatusMitigated
SourceRFC 9700 §2.2.2; Mural verbatim: "By default, OAuth tokens expire after 15 minutes"
Trust Boundary CrossedSkill Process ↔ Mural Token Endpoint
DetectionHTTP 429 from token endpoint; cache-lock wait-time metric
FieldValue
CategoryElevation of Privilege
AssetGranted OAuth scope set
ThreatSkill (or a future variant) requests broader scopes than required for the task at hand, or an attacker tampers with the scope parameter mid-flow to escalate; consent-phishing pattern is a recognized MITRE ATT&CK technique
LikelihoodLow (skill scope set is hardcoded and minimal)
ImpactHigh (excessive scope grants enable destructive operations or data exfiltration beyond the user's expected approval)
MitigationsScope is constructed from a hardcoded constant (not user-influenced); destructive operations require an explicit dispatch-time scope re-check (mural-skill-discipline /memories/repo/); least-privilege scope set documented in skill SECURITY.md; tag-level scopes (room:read, room:write) are space-delimited and case-sensitive per Mural's documented format
Residual RiskLow
StatusMitigated
SourceMITRE ATT&CK T1528 (Steal Application Access Token); CAPEC-593 (Session Hijacking); RFC 6819 §5.1.5.1 (Threat: Obtaining Tokens with Wrong Scope); OWASP ASVS V51.2.1 (least-privilege scope)
Trust Boundary CrossedBrowser ↔ Mural Authorization Server
DetectionScope diff between requested and granted (if Mural ever emits granted scope in token response); periodic Mural-side scope audit at https://app.mural.co/account/api

OA-16: Bearer Token Theft Enabling Cross-Resource Replay

FieldValue
CategoryElevation of Privilege
AssetBearer access_token issued by Mural
ThreatA bearer token (no client-binding) stolen via OA-8 / OA-10 / OA-11 can be replayed against any Mural API endpoint by any actor who possesses the token, with no cryptographic proof-of-possession required. RFC 9449 (DPoP) and FAPI 2.0 sender-constrained token profiles would mitigate this but Mural does not currently document support for either
LikelihoodLow (depends on a prior exfiltration vector)
ImpactHigh (full delegated scope until token expires; refresh token compounds the window per OA-11)
MitigationsDefense in depth via OA-4 (client_secret protection), OA-8 (log redaction), OA-10 (file mode), OA-11 (revocation runbook); access-token TTL of 900s caps the post-theft replay window for the access token specifically; track Mural's roadmap for sender-constrained token support and adopt RFC 9449 DPoP if/when offered
Residual RiskMedium (cannot be fully mitigated without upstream Mural support for sender-constrained tokens; this is an architectural limitation of bearer-token OAuth)
StatusPartially Mitigated (architectural limitation documented)
SourceRFC 9449 (OAuth 2.0 Demonstrating Proof of Possession (DPoP)); FAPI 2.0 Security Profile §5.3 (sender-constrained access tokens); RFC 9700 §2.2.1 (Token Replay Prevention); MITRE ATT&CK T1550.001 (Application Access Token); CAPEC-593
Trust Boundary CrossedSkill Process ↔ Mural API
DetectionMural-side anomaly detection on user-agent, IP, or request-pattern divergence

OA-17: Stolen-Token Abuse Window via Missing Rotation + Long Refresh TTL

FieldValue
CategoryElevation of Privilege
AssetCompromise-recovery time (the window between token theft and effective revocation)
ThreatBecause Mural does not rotate refresh tokens (OA-11) and does not document a refresh-token TTL, a stolen refresh token combined with absence of rotation means recovery requires the user to perform manual revocation at the Mural account UI. Until they do, the attacker retains the same authority as the legitimate user. This compounds the impact of any successful exfiltration vector
LikelihoodLow (compound event: requires successful exfiltration AND delayed user response)
ImpactCritical (open-ended persistence)
MitigationsDocumented incident-response runbook in skill SECURITY.md G-EOP-1 (Mural revocation URL: https://app.mural.co/account/api); access-token TTL of 900s caps the access-token-only attack window; client-side defenses against exfiltration (OA-4, OA-8, OA-10) reduce the precondition probability; advise consumers to monitor Mural account-side audit log on a routine cadence; track Mural's roadmap for refresh-token rotation support and adopt as soon as it is offered
Residual RiskMedium (cannot be fully mitigated without upstream Mural support for refresh-token rotation; this is a documented Mural design limitation, not a skill defect)
StatusPartially Mitigated (architectural limitation documented; G-EOP-2 in skill SECURITY.md is now CONFIRMED CORRECT against Mural's published documentation)
SourceRFC 9700 §2.2.2 (Refresh Token Protection; recommends rotation); RFC 6819 §5.2.2.3 (Refresh Token Rotation); OAuth 2.1 §4.3.1; Mural verbatim refresh-response schema: { "access_token": <TOKEN>, "expires_in": <EXPIRATION (in seconds)> } (no refresh_token); Mural verbatim reuse statement: "You can reuse your refresh_token as many times as you need to get a new access_token."; Mural account-side revocation: https://app.mural.co/account/api
Trust Boundary CrossedSkill Process ↔ Mural API; User ↔ Mural Account Console
DetectionOut-of-band Mural account-side audit; alert on token-issuance anomaly

Security Controls

Supply Chain Security Controls

IDControlImplementationValidates Against
SC-1Dependency Pinning ValidationTest-DependencyPinning.ps1S-1, S-2
SC-2SHA Staleness MonitoringTest-SHAStaleness.ps1S-1
SC-3Dependency Reviewdependency-review.ymlS-2, AI-5
SC-4npm Security Auditnpm audit in pr-validation.ymlS-2
SC-5Dependabot Updatesdependabot.ymlS-1, S-2
SC-6Tool Checksum Verificationscripts/security/tool-checksums.jsonS-1
SC-7SBOM Generation and Attestationanchore/sbom-action, actions/attest in main.ymlS-1, S-2
SC-8SBOM Dependency Diffsbom-diff job in main.ymlS-1, S-2

SC-8: SBOM Dependency Diff Implementation

The sbom-diff job in main.yml runs during each release to surface supply chain changes between consecutive versions. It compares the current dependency SBOM against the previous release, generating a structured dependency-diff.md report that is uploaded to the GitHub Release.

FieldValue
TriggerRuns when release_created == 'true', after SBOM generation completes
InputSPDX JSON dependency SBOMs from current build and previous GitHub Release
Outputdependency-diff.md uploaded to the GitHub Release as an asset
Failure Modecontinue-on-error: true prevents diff failures from blocking the release
Permissionscontents: write (release asset upload only)

The diff script parses SPDX JSON packages, excludes root document entries, and categorizes changes into three groups:

  • Added packages not present in the previous release
  • Removed packages no longer included in the current build
  • Version changes where the same package appears in both releases at different versions

When no previous release exists or the prior release lacks a dependency SBOM, the job exits cleanly without producing a diff. This graceful degradation ensures the first release in a repository proceeds without error.

Code Quality Controls

IDControlImplementationValidates Against
CQ-1CodeQL Analysiscodeql-analysis.ymlT-1, E-1
CQ-2Markdown Lintinglint:md npm scriptT-2, RAI-4
CQ-3Frontmatter ValidationValidate-MarkdownFrontmatter.ps1T-2
CQ-4PowerShell AnalysisInvoke-PSScriptAnalyzer.ps1T-1
CQ-5YAML LintingInvoke-YamlLint.ps1T-1

Access Controls

IDControlImplementationValidates Against
AC-1Branch ProtectionRepository settingsT-1, E-2
AC-2CODEOWNERS Enforcement.github/CODEOWNERST-1, T-2
AC-3PR Review RequirementsBranch protection rulesT-2, AI-1
AC-4Minimal Workflow Permissionspermissions: in all workflowsE-1

Vulnerability Management Controls

IDControlImplementationValidates Against
VM-1Coordinated DisclosureSECURITY.mdI-1
VM-2Secret ScanningGitHub native, gitleaks PR gate (gitleaks-scan.yml)I-1, I-2
VM-3Credential Persistence Disabledpersist-credentials: falseI-1, E-1

Assurance Argument

This section presents the security assurance case using Goal Structuring Notation (GSN) patterns.

Top-Level Goal

G0: HVE Core is acceptably secure for its intended use as an enterprise prompt engineering framework.

Supporting Goals

GoalStatementStrategy
G1Supply chain attacks are mitigatedS1: Defense-in-depth controls
G2Unauthorized modifications are preventedS2: Access control enforcement
G3AI-specific risks are documented and addressedS3: Risk acceptance with documentation
G4Responsible AI principles are followedS4: Guidelines and review processes

Evidence Mapping

GoalEvidence
G1Dependency pinning logs, staleness reports, dependency review results, SBOM attestation verification, dependency SBOM diff reports
G2Branch protection configuration, CODEOWNERS file, PR review history
G3This security model document, OAuth Authentication Threats, MCP Server Trust Analysis
G4Writing style guidelines, inclusive language checks, PR reviews

Assumptions and Justifications

IDAssumptionJustification
A1GitHub platform security is adequateSOC 2 Type II certified
A2GitHub Copilot provides baseline AI safetyMicrosoft RAI compliance
A3Contributors act in good faithPR review provides verification
A4Consumers implement their own code reviewDocumented as consumer responsibility

Argument Summary

HVE Core achieves acceptable security through:

  1. Automated Controls: 20+ security controls execute automatically via CI/CD
  2. Defense-in-Depth: Multiple overlapping controls for critical threats
  3. Transparent Risk Acceptance: AI-inherent risks documented with clear boundaries
  4. Inherited Security: Uses GitHub and Copilot platform security

MCP Server Trust Analysis

HVE Core documents integrations with Model Context Protocol servers. This section analyzes the trust posture of each server.

NOTE

GitHub MCP is enabled by default in VS Code when using GitHub Copilot. The other servers are optional and recommended for an optimal HVE Core development experience. See MCP Configuration for setup instructions.

Server Summary

ServerProviderClassificationTrust LevelData Flow RiskDefault
GitHub MCPGitHubFirst-partyHighLowYes
Azure DevOps MCPMicrosoftFirst-partyHighLowNo
Microsoft Docs MCPMicrosoftFirst-partyHighLowNo
Context7 MCPUpstashThird-partyMediumMediumNo
Mural skill MCPhve-coreFirst-partyHighMediumNo

GitHub MCP Server

AttributeAssessment
OperatorGitHub (Microsoft subsidiary)
DeploymentRemote (github.com hosted) or local
AuthenticationOAuth, GitHub App tokens, PATs
AuthorizationInherits GitHub permission model
Data HandlingData stays within GitHub ecosystem
AuditGitHub audit log captures operations
RecommendationLow risk; enable organization policies for access control

Azure DevOps MCP Server

AttributeAssessment
OperatorMicrosoft
DeploymentLocal only (npx invocation)
AuthenticationBrowser-based Azure AD login
AuthorizationInherits Azure DevOps permissions
Data HandlingNo persistent storage by MCP server
AuditAzure DevOps audit log
RecommendationLow risk; standard Microsoft security practices apply

Microsoft Docs MCP Server

AttributeAssessment
OperatorMicrosoft
DeploymentRemote (learn.microsoft.com API)
AuthenticationNone required (public documentation)
AuthorizationRate limiting only
Data HandlingRead-only queries; no user data transmitted beyond search terms
AuditStandard Microsoft API logging
RecommendationLow risk; queries limited to public documentation

Context7 MCP Server

AttributeAssessment
OperatorUpstash (third-party)
DeploymentLocal client, Upstash backend
AuthenticationAPI keys via Upstash dashboard
AuthorizationRate limiting, enterprise SSO available
Data HandlingQueries processed locally; only topics sent to backend
AuditAPI logs with 30-day retention
RecommendationMedium risk; evaluate topic extraction for sensitive context

Mural Skill MCP Server

AttributeAssessment
Operatorhve-core (.github/skills/experimental/mural/)
DeploymentLocal stdio (python -m mural mcp)
AuthenticationPer-user Mural OAuth app via Authorization Code + PKCE loopback flow
AuthorizationInherits the granted Mural scope set; destructive tools re-check granted_scopes at dispatch
Data HandlingTokens persisted to a per-user on-disk cache (mode 0600); Mural payloads returned as untrusted text in MCP tool results
Auditstderr request log plus Mural API audit trail
Threat ModelMural Skill Security Model; OAuth-flow STRIDE entries OA-1..OA-17 in OAuth Authentication Threats
RecommendationMedium data-flow risk; treat all returned widget text as untrusted, restrict OAuth scopes via MURAL_SCOPES where possible

Outstanding Hardening Work

Follow-up items identified during the Phase 5 review of the Mural skill OAuth surface (tracked in .copilot-tracking/reviews/2026-05-10/mural-oauth-review.md):

  • _REDACT_KEYS allow-list and callsite audit completed in .copilot-tracking/reviews/2026-05-10/mural-redact-callsite-audit.md; all LOGGER.* and _emit callsites confirmed safe and code_challenge removed from the redact list (public by PKCE design).
  • Build an Atheris fuzz harness under .github/skills/experimental/mural/tests/fuzz/ exercising _redact() and _LoopbackHandler request parsing.
  • MURAL_KEYRING_BACKEND is a developer trust toggle: when set, the skill imports the named module via importlib and uses it as the OS keyring backend. Treat any value as code-execution surface; operators must only set it to a backend module they own or fully trust. Unset by default; on-disk cache (0600) is the production path.

Trust Recommendations

  1. First-party servers (GitHub, Azure DevOps, Microsoft Docs): Enable with organization policy controls; GitHub MCP is enabled by default
  2. Third-party servers (Context7): Evaluate data flow, use API key rotation, review Upstash trust center

Quantitative Security Metrics

Configured Thresholds

MetricThresholdSource
Dependency Pinning Compliance≥95%dependency-pinning-scan.yml
SHA Staleness≤30 dayssha-staleness-check.yml
Dependency Review Failmoderatedependency-review.yml
npm Audit Fail Levelmoderatepr-validation.yml
Required PR Reviewers1Branch protection

Security Response Commitments

CommitmentSLASource
Security Report Response24 hoursSECURITY.md
Governance Change Comment1 weekGOVERNANCE.md

Validation Workflow Coverage

WorkflowTriggerSecurity Checks
pr-validation.ymlPR to main/developPinning, npm audit, CodeQL, gitleaks
release-stable.ymlPush to mainPinning, gitleaks, SBOM attestation, dependency diff (release)
codeql-analysis.ymlPush, PR, weeklyStatic analysis
dependency-review.ymlPR to main/developVulnerability scanning
weekly-security-maintenance.ymlSundays 2 AM UTCPinning, staleness, CodeQL

References

Internal Documentation

External Standards

OAuth Standards (Authorization Code + PKCE)


🤖 Crafted with precision by ✨Copilot following brilliant human instruction, then carefully refined by our team of discerning human reviewers.