SecPriv — Unified Security and Privacy Code Review Skill

Identify CWE-mapped security weaknesses and GDPR-mapped privacy violations in Python and JavaScript/TypeScript code.

8|Updated May 19, 2026
One-click install
npx skills add https://github.com/facebookresearch/secpriv-skill --skill secpriv-unified-security-and-privacy-code-review-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SecPriv — Unified Security and Privacy Code Review Skill
Source: https://github.com/facebookresearch/secpriv-skill/tree/main
Command: npx skills add https://github.com/facebookresearch/secpriv-skill --skill secpriv-unified-security-and-privacy-code-review-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It enables a single-pass code review that surfaces both security weaknesses (CWE-mapped) and privacy violations (GDPR-mapped) in code, reducing fragmentation between security and privacy review processes.

Core Features & Use Cases

  • Unified detector-validator workflow that enumerates candidate findings across security and privacy surfaces and suppresses false positives with a shared, confidence-thresholded validator.
  • Supports Python and JavaScript/TypeScript code reviews in pull requests and diffs, with cross-surface mapping and standards alignment to CWE IDs or GDPR articles.
  • Use case: integrate SecPriv into a code-review workflow to produce a concise JSON array of high-confidence findings for pull requests.

Quick Start

Provide the SKILL.md system prompt to your LLM agent and submit a code file to receive a JSON array of findings.

Frequently Asked Questions about SecPriv — Unified Security and Privacy Code Review Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate security and privacy code review for pull requests?

Automating security and privacy code review involves using an LLM agent to analyze pull requests for CWE-mapped weaknesses and GDPR-mapped violations. It returns a structured JSON array of high-confidence findings for Python and JavaScript/TypeScript.

What is a unified detector-validator workflow for code review?

A unified detector-validator workflow enumerates candidate findings across security and privacy surfaces, then suppresses false positives using a shared, confidence-thresholded validator. It enforces a five-phase process mapping source/sink flows to CWE or GDPR standards.

Can I check Python and TypeScript code for GDPR compliance in a single pass?

Yes, you can check Python and JavaScript/TypeScript code for GDPR compliance in a single pass. The review performs dual-surface assessment to identify privacy violations mapped to GDPR articles alongside CWE security weaknesses.

Does automated LLM code review map findings to specific CWE IDs?

Yes, automated LLM code review maps findings to specific CWE IDs. It requires high-confidence findings to include explicit CWE references for security weaknesses or GDPR articles for privacy violations in the output.

How do I reduce false positives in automated security code review?

Reduce false positives in automated security code review by applying validator suppression rules after initial source/sink mapping. The shared validator thresholds confidence levels before returning the final JSON array of findings.

What are the limitations of using LLM for GDPR code compliance checks?

Limitations include support for only Python and JavaScript/TypeScript code. It requires high-confidence findings mapped to GDPR articles and is intended for reviewing single files, diffs, or pull requests.