secondsky/sap-skillsGPL-3.031 files

Sap Dependency Security

SAP dependency security and MCP executable trust policy with secure upgrades, cooldowns, staged rollout, and supply-chain protection. Use when upgrading deps, configuring security policies, preventing supply chain attacks, pinning SAP MCP servers, or reviewing SAP CAP/UI5/Fiori/HANA/Datasphere/SAC/BTP/ABAP dependency workflows.

Specification
Skill ID
secondsky/sap-skills/sap-dependency-security
Publisher
secondsky
Repository
sap-skills
Installs
0
Files
31
License
GPL-3.0
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

secondsky/sap-skills/sap-dependency-securityInstalls these files
  • README.md
  • SKILL.md
  • agents/openai.yaml
  • references/compatibility-matrix.md
  • references/cooldown-config-guide.md
  • references/package-manager-security.md
  • references/sap-dependency-risk-matrix.md
  • references/sap-mcp-inventory.json
  • references/sap-mcp-security.md
  • references/secrets-and-containers.md
  • references/socket-cli-guide.md
  • references/staged-upgrades.md
  • references/supply-chain-security.md
  • references/testing-strategy.md
  • scripts/generate-dependency-upgrades.sh
  • templates/abap-gcts-review.tmpl
  • templates/btp-cf-mbt-review.tmpl
  • templates/bunfig-security.tmpl
  • templates/container-trivy.tmpl
  • templates/dependabot-security.tmpl
  • templates/devcontainer-security.tmpl
  • templates/gradle-security.tmpl
  • templates/maven-security.tmpl
  • templates/npmrc-security.tmpl
  • templates/pnpm-workspace-security.tmpl
  • templates/python-security.tmpl
  • templates/renovate-security.tmpl
  • templates/sap-mcp-config.tmpl
  • templates/socket-fix-ci.tmpl
  • templates/socket-scan-ci.tmpl
  • templates/yarnrc-security.tmpl

What this skill tells the agent

SAP Dependency Security

Related Skills

  • sap-hana-cli: For dependency-aware database tooling workflows and upgrade guidance
  • sap-cap-capire: For CAP dependency-safe runtime and service configuration guidance
  • sap-fiori-tools: For secure UI5/Fiori dependency strategy when tooling touches frontend packages
  • sapui5: For SAPUI5/OpenUI5 frontend dependency and MCP tooling review
  • sap-datasphere: For tenant-connected Datasphere MCP and CLI dependency review
  • sap-sac-scripting: For source-pinned SAC MCP setup and local install records

Manage SAP dependency security and upgrades with supply chain protection, compatibility analysis, staged rollout, and comprehensive testing across all major package managers.

When to Use This Skill

  • Upgrading major framework or library versions
  • Configuring supply chain attack prevention (cooldown, script blocking, lockfile hardening)
  • Setting up secure package manager configuration
  • Resolving dependency conflicts or peer dependency issues
  • Planning incremental upgrade paths with testing
  • Automating dependency updates with Renovate, Dependabot, or Snyk
  • Auditing dependencies for vulnerabilities
  • Setting up CI/CD dependency security workflows
  • Pinning or reviewing SAP MCP servers in .mcp.json
  • Reviewing SAP CAP, UI5/Fiori, HANA, Datasphere, SAC, SAP Cloud SDK, BTP/CF/mbt, or ABAP/gCTS dependency workflows

Common Issues

IssueRecommended response
Floating MCP package or @latest in .mcp.jsonReplace with an exact version or approved source commit and run npm run validate:mcp-security.
Lockfile changed unexpectedlyReview package manager config, block lifecycle scripts, and regenerate only after dependency intent is clear.
Dependency is too new for cooldown policyHold the upgrade unless a documented security exception justifies immediate adoption.
Tenant-connected tool changed sourceVerify the source URL, commit, and build steps before using credentials.

Two Modes of Operation

Interactive — Walk through setup questions to generate tailored config. Use for fresh setup.

Default — Apply recommended defaults immediately: 7-day cooldown, block all scripts, frozen-lockfile, lockfile-lint, Dependabot with cooldown. Customization optional.

SAP Development Mode — Use a stricter SAP posture: 14-day cooldown, exact pins for MCP servers and executable tooling, no floating @latest, source commit pins for local MCP servers, and manual review for tenant-connected tools.

SAP Development Mode

Use SAP Development Mode when dependency work touches SAP projects, SAP BTP deployment tooling, SAP SDKs, or any MCP server shipped by this repository.

Core rules:

  1. Default to 14-day cooldown for SAP enterprise projects. Record explicit exceptions in the SAP MCP inventory or project review notes.
  2. Treat MCP servers as executable dependencies. In .mcp.json, use exact npm pins such as @ui5/mcp-server@0.2.11, never @latest or bare package names.
  3. Pin local-source MCPs by commit. SAC uses the trusted secondsky/sap_analytics_cloud_mcp fork and must record commit 2020235505d98111c2889598ab2217c1619b6943.
  4. Keep runtime authorization separate. This skill covers package/source/executable trust; use the relevant SAP skill for tenant role design and business authorization.
  5. Validate MCP drift with npm run validate:mcp-security after any .mcp.json or SAP MCP inventory change.

Load references/sap-dependency-risk-matrix.md for SAP stack coverage and references/sap-mcp-security.md for MCP update workflow and SAC source-install policy. Use references/sap-mcp-inventory.json as the machine-readable approved MCP package/source list.

Interactive Setup Flow

When the user wants tailored configuration, walk through these decisions. Skip this section entirely if using default mode.

Tier 1: Required Decisions

Always ask these 3 questions before generating any config:

1. Package Manager

"Which package manager does this project use?"

AnswerGenerates
npm.npmrc
Bunbunfig.toml
pnpmpnpm-workspace.yaml
Yarn.yarnrc.yml
Denodeno.json config

2. Cooldown Period

"How many days should newly published packages age before install? This prevents supply chain attacks where malicious packages are discovered and unpublished within days."

OptionDaysUse Case
Aggressive3Catches most typosquatting
Recommended7Good balance for most projects
Conservative14Critical/production systems
Paranoid21Matches Snyk's built-in default
CustomNUser specifies

3. Post-Install Script Policy

"How should lifecycle scripts (postinstall, preinstall) be handled? These are the #1 attack vector for supply chain attacks."

OptionBehavior
Block all (recommended)--ignore-scripts + allow-git=none
AllowlistBlock by default, allow specific trusted packages
Review onlyWarn but don't block

Tier 2: Security Tooling (Offer as Batch)

"Which of these security features would you like to configure? Select any that apply."

4. CI/CD Automation Tool

AnswerGenerates
Dependabot.github/dependabot.yml with cooldown
Renovaterenovate.json with minimumReleaseAge
SnykNo config needed (21-day cooldown built-in)
NoneSkip

5. Automerge Policy

OptionBehavior
NoneAll updates require manual review
Minor+Patch onlyAuto-merge safe updates, review majors
All with approvalAuto-merge after team approval

6. Update Schedule

OptionConfig Value
Daily"daily"
Weekly (default)"weekly"
Biweekly"biweekly"
Monthly"monthly"

7. Install-Time Security Tooling

"Which security tools should protect dependency installation?"

OptionFree?What It Does
socket npm wrapperYes (beta)Wraps npm/npx, blocks malicious packages before install. Run socket wrapper on to enable system-wide.
npqYesPre-install auditor (CVE, typosquat, age, provenance checks)
Socket Firewall (sfw)NoReal-time deep analysis, blocks malicious packages
socket npm + npqYesBoth free tools combined
None—Skip

Load references/socket-cli-guide.md for full Socket CLI setup including authentication and free vs authenticated features.

8. Lockfile Validation

OptionBehavior
Yes (recommended)Adds lockfile-lint + CI script
NoSkip

Tier 3: Advanced Options (Only If User Opts In)

"Would you like to configure any advanced options?"

9. Dev Containers — Generate hardened .devcontainer/devcontainer.json (Yes/No)

10. Secrets Manager — 1Password CLI / Infisical / None

11. pnpm Trust Policy — Enable trustPolicy: no-downgrade (pnpm 10.21+ only, Yes/No)

12. Cooldown Exclusions — Package names that bypass cooldown (e.g., @types/react, typescript, esbuild)

Security-First Upgrade Principles

  1. Cooldown before installing — Wait 7 days for general projects or 14 days for SAP enterprise/MCP workflows so new package versions are vetted by the community
  2. Block post-install scripts — Prevent arbitrary code execution during npm install
  3. Freeze lockfiles in CI — Use deterministic installs (npm ci, --frozen-lockfile)
  4. Validate lockfile integrity — Use lockfile-lint to detect injection
  5. Audit before trusting — Use npq or Socket CLI to check packages before installing
  6. Upgrade incrementally — One major version at a time with testing between each
  7. Never blindly upgrade — Avoid npm update or npm-check-updates -u without review

Use this skill in a project

Open any RiverX project, search the Skills panel for secondsky/sap-skills/sap-dependency-security, and install it in one click.

Use this skill