Vulnerability Scanning

Vulnerability Scanning

Gives a coding agent a skill for automated vulnerability scanning of dependencies, code, containers and secrets, with Node.js and Python scanners and CI integration.

Skill files6 files

references/

scripts/

templates/

SKILL.md95 lines
1
---
2
name: vulnerability-scanning
3
description: >
4
Automated vulnerability detection using OWASP tools, CVE databases, and
5
security scanners. Use when performing security audits, compliance checks, or
6
continuous security monitoring.
7
---
8
9
# Vulnerability Scanning
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Systematically identify security vulnerabilities in applications, dependencies, and infrastructure using automated scanning tools and manual security assessments.
22
23
## When to Use
24
25
- Pre-deployment security checks
26
- Continuous security monitoring
27
- Compliance audits (PCI-DSS, SOC 2)
28
- Dependency vulnerability detection
29
- Container security scanning
30
- Infrastructure security assessment
31
32
## Quick Start
33
34
Minimal working example:
35
36
```javascript
37
// scanner.js - Comprehensive vulnerability scanning
38
const { exec } = require("child_process");
39
const util = require("util");
40
const fs = require("fs").promises;
41
42
const execPromise = util.promisify(exec);
43
44
class VulnerabilityScanner {
45
constructor() {
46
this.results = {
47
dependencies: [],
48
code: [],
49
docker: [],
50
secrets: [],
51
};
52
}
53
54
async scanDependencies() {
55
console.log("Scanning dependencies with npm audit...");
56
57
try {
58
const { stdout } = await execPromise("npm audit --json");
59
const auditResults = JSON.parse(stdout);
60
61
for (const [name, advisory] of Object.entries(
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Node.js Vulnerability Scanner](references/nodejs-vulnerability-scanner.md) | Node.js Vulnerability Scanner |
72
| [Python OWASP Scanner](references/python-owasp-scanner.md) | Python OWASP Scanner |
73
| [CI/CD Integration - GitHub Actions](references/cicd-integration-github-actions.md) | CI/CD Integration - GitHub Actions |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Automate scans in CI/CD
80
- Scan dependencies regularly
81
- Use multiple scanning tools
82
- Set severity thresholds
83
- Track vulnerability trends
84
- Scan containers and images
85
- Monitor CVE databases
86
- Document false positives
87
88
### ❌ DON'T
89
90
- Skip vulnerability scanning
91
- Ignore low severity issues
92
- Trust single scanning tool
93
- Bypass security gates
94
- Commit secrets to repos
95

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…