Skip to content

Security Assurance Case ​

This assurance case explains why the security requirements for easyeda-mcp-pro are expected to be met. It is evidence for the OpenSSF Best Practices assurance_case criterion and should be reviewed whenever the trust model, transport model, release process, or bridge permissions change.

Claim ​

easyeda-mcp-pro provides a safe-by-default MCP server for EasyEDA Pro workflows by applying explicit trust boundaries, secure defaults, input validation, least-privilege operational modes, dependency monitoring, and controlled release processes.

Security requirements ​

The project security requirements are documented in:

The core requirements are:

  1. local-first operation is safe by default,
  2. remote HTTP operation requires explicit authentication and origin controls,
  3. write operations require explicit confirmation,
  4. raw bridge execution is disabled by default,
  5. secrets are stored outside source code and redacted from logs,
  6. supplier API credentials are never committed or emitted in tool output,
  7. generated artifacts are written through constrained paths,
  8. releases are produced through protected CI and reviewed automation.

Threat model summary ​

The main threats are documented in docs/security-architecture.md and include:

  • credential leakage through logs or tool output,
  • unauthorized bridge commands,
  • unsanctioned schematic or board mutation,
  • path traversal in generated artifacts,
  • OAuth token forgery or replay,
  • dependency supply-chain compromise,
  • DNS rebinding or unsafe remote HTTP exposure,
  • vendor API credential misuse.

Trust boundaries ​

BoundaryTrust transitionControl
MCP client to serveruser/AI request enters server processschema validation, tool profile filtering, scope checks
Server to EasyEDA bridgeMCP tool requests become bridge protocol messagesbridge pairing, write confirmation, documented API allowlists
Server to filesystemgenerated BOM/export/log/cache artifacts are writtenpath constraints, controlled data directory, explicit export tools
Server to supplier APIslocal BOM data becomes vendor lookup requestsopt-in credentials, redacted logs, no automatic paid ordering by default
HTTP clients to MCP servernetwork traffic enters remote transportloopback default, OAuth/JWKS support, allowed origins, rate limits
Maintainer to release channelsource changes become npm/GitHub release artifactsbranch protection, CI quality checks, CodeQL, dependency monitoring, release workflow

Secure design principles applied ​

PrincipleProject application
Fail-safe defaultsstdio/local operation is default; raw bridge execution and paid ordering are disabled by default.
Complete mediationMCP tools pass through schema validation, profile gating, and write-confirmation checks.
Least privilegeprofiles limit exposed tools; CI permissions are scoped; supplier credentials are opt-in.
Economy of mechanismsafety gates are centralized in configuration, tool registration, and bridge manager paths.
Open designsecurity architecture, safety model, and vendor terms are public documentation.
Separation of privilegehigh-risk operations require explicit feature flags and confirmWrite or equivalent confirmation.
Least common mechanismcredentials live in environment/secrets stores, not in shared source files.
Psychological acceptabilitysetup, diagnostics, and errors are designed to explain safe configuration requirements.

Common weakness countermeasures ​

Weakness classCountermeasure
Injection / unsafe dynamic executionno raw JavaScript execution by default; documented API allowlists; experimental flags for raw execution; the SPICE verification tools never accept a raw deck — decks are built only from typed, validated component data with identifier sanitization, since ngspice's .control block can otherwise run arbitrary OS commands (docs/simulation.md).
Broken authenticationOAuth/JWKS support for remote HTTP; bridge pairing for non-loopback bridge connections.
Sensitive data exposurelog redaction, environment-based credentials, secret scanning, push protection.
Path traversalconstrained artifact/export paths and validation around generated outputs.
Vulnerable dependenciesDependabot alerts, Renovate, Socket, pnpm audit, CodeQL, lockfile review.
Insecure default configurationnon-loopback HTTP without complete OAuth and an explicit non-wildcard origin allowlist is rejected in every environment; production adds further dangerous-feature checks.
Insufficient testsCI runs typecheck, lint, tests, coverage, evals, docs, metadata, and extension verification.
Unreviewed releasesRelease Please, protected main, required checks, npm provenance, and release workflow gates.

Evidence ​

Residual risks ​

  • Solo-maintainer continuity risk remains until a trusted backup maintainer or documented successor is added.
  • Signed release tags are planned but not yet fully documented as a mandatory release gate.
  • Some supplier APIs are external systems whose availability, terms, and data quality are outside project control.
  • Users can intentionally enable unsafe or experimental modes; those modes must remain clearly documented and disabled by default.

Review cadence ​

Review this assurance case before each minor release, after significant transport/authentication changes, and after any confirmed security incident.

Open source under AGPL-3.0-only. Review the safety contract before enabling writes.