updating yaml

This commit is contained in:
Bhavin Patel
2025-09-29 16:36:31 -07:00
parent 655e5842e4
commit 924de22f84
52 changed files with 2 additions and 9 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -9
View File
@@ -3,9 +3,7 @@ display_name: Compromise Software Supply Chain
atomic_tests: atomic_tests:
- name: Simulate npm package installation on a Linux system - name: Simulate npm package installation on a Linux system
description: | description: |
Launches a Node.js pod, builds a local npm package whose "install" script writes a marker file (/tmp/malicious), Launches a shortlived Kubernetes pod using the Node 18 image, initializes a minimal npm project in /tmp/test, and installs the specified npm package without audit/fund/packagelock options, simulating potentially suspicious package retrieval (e.g., typosquatting/dependency confusion) from within a container. The pod is deleted after execution.
packs that package, then installs it to simulate a compromised npm package that executes during install.
The pod is automatically deleted after execution and the command prints the marker's contents so detections can be validated.
supported_platforms: supported_platforms:
- containers - containers
- linux - linux
@@ -26,9 +24,4 @@ atomic_tests:
name: bash name: bash
elevation_required: false elevation_required: false
command: | command: |
kubectl run #{pod_name} --image=node:18 --restart=Never --attach --rm -i -- bash -lc "mkdir /tmp/test && cd /tmp/test && npm init -y >/dev/null 2>&1 && npm install #{package_name} --no-audit --no-fund --no-package-lock" kubectl run #{pod_name} --image=node:18 --restart=Never --attach --rm -i -- bash -lc "mkdir /tmp/test && cd /tmp/test && npm init -y >/dev/null 2>&1 && npm install #{package_name} --no-audit --no-fund --no-package-lock"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.