Skip to content
Back to skills

Security Engineering

ASecurity

Security practices for a VS Code extension handling untrusted engineering files and bus hardware - webview CSP and message validation, untrusted parser input, process boundaries, supply chain, threat modelling (STRIDE), secure release. Use for security reviews, threat models and dependency decisions.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
developmentrustshellsecuritydocumentation

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add afri-bit/candb-studio --skill security-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Engineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/afri-bit-security-engineering/badge)](https://www.skillsdirectory.com/skills/afri-bit-security-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-engineering
description: Security practices for a VS Code extension handling untrusted engineering files and bus hardware - webview CSP and message validation, untrusted parser input, process boundaries, supply chain, threat modelling (STRIDE), secure release. Use for security reviews, threat models and dependency decisions.
---

# Security engineering

## Trust boundaries
| Boundary | Untrusted side | Controls |
|----------|----------------|----------|
| Webview <-> host | webview JS and its messages | Host validates **every** message: known `type`, schema/shape, size limits, `documentUri` in allowed set; webview CSP `default-src 'none'`, nonce scripts, no remote content, minimal `localResourceRoots`. |
| File input | `.dbc`, `.blf`, recordings | Bounded reads, size-field checks, inflate caps, no regex with nested quantifiers on user text, errors carry offsets. |
| Adapter / bridge | device, vendor SDK, helper process | Spawn with argument arrays (no shell), validate framing, timeouts, kill on dispose, no inbound network listener by default. |
| Bus transmit | the physical bus | Explicit user action, visible state, confirmation for bulk/periodic send, never during replay, audit log entry. |
| Build / release | npm dependencies, CI | Lockfile, `npm ci`, `npm audit`, review install scripts, pinned vendor SDK, provenance, signed releases. |

## STRIDE quick prompts
Spoofing (which message sender?), Tampering (file modified on disk / in flight), Repudiation (can we tell what transmitted?), Information disclosure (logs include customer traces - never upload), Denial of service (giant file, zip bomb, regex, flood of frames), Elevation (webview -> host file write).

## Threat model template (docs/security/)
Assets - Entry points - Trust boundaries - Threats (STRIDE) - Mitigations - Residual risk - Tests that prove the mitigation.

## Dependency policy
New dependency requires: purpose, alternatives considered, maintenance status, licence (compatible with MIT), install scripts, size impact, and an entry in the PR description. Prefer zero-dependency code for parsers. Run `npm audit --omit=dev` before release; track exceptions with expiry.

## Secrets and privacy
No keys in repo/webview/logs. No telemetry without opt-in and documentation. Logs must not contain frame payloads by default (customer data) - redact or gate behind a debug setting.

## Reporting
Maintain `SECURITY.md` (private reporting channel, supported versions, disclosure timeline).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.