Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringclasses
54 values
input
stringlengths
244
22.7k
output
stringlengths
423
2.82k
metadata
stringlengths
148
196
Perform a comprehensive security code review of this C++ function. Determine whether any security vulnerabilities are present, identify the security controls implemented, and provide a final assessment.
Component ID: BENIGN-MEM-01 Language: C++ Ecosystem: Native Domain: Memory Safety ``` #include <vector> #include <span> #include <cstdint> bool safe_copy_payload(std::span<const uint8_t> src, std::span<uint8_t> dest) { // Explicit bounds validation if (src.empty() || src.size() > dest.size()) { return...
SECURITY CODE REVIEW: BENIGN-MEM-01 ============================================================ 1. AUDIT VERDICT: SECURE (NO VULNERABILITY DETECTED) - Severity: NONE - Weakness Analyzed: Memory Safety 2. TECHNICAL JUSTIFICATION: Validates source and destination buffer capacities using std::span before memor...
{"source":"benign_negative_control","vuln_id":"BENIGN-MEM-01-VAR56","task_type":"benign_code_review","severity":"NONE","ecosystem":"Native","language":"C++","cwe":null,"is_benign":true}
Examine potential false-negative scenarios for this vulnerability class. Explain how subtle code patterns bypass naive audits and how to detect hidden instances in complex codebases.
Vulnerability ID: MAL-2024-10004 Source: osv Title: Malicious code in etherriuum (PyPI) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: kam193 (97ab0aba132bab88f7aef57aa0f324368a1e341b9ec55c97d746c82522247597) --- Category: MALICIOUS - The campaign has clearly malicious intent, li...
FALSE NEGATIVE & BLIND-SPOT SECURITY ANALYSIS: MAL-2024-10004 ============================================================ WEAKNESS FOCUS: Security Flaw (None) 1. HIDDEN / SUBTLE VULNERABLE PATTERN (FALSE NEGATIVE RISK): Vulnerabilities often bypass naive static analysis or manual audits when hidden under obfuscat...
{"source":"osv","vuln_id":"MAL-2024-10004","task_type":"false_negative_analysis","severity":"HIGH","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Analyze API contracts, request/response validation, authentication, authorization, and implicit trust assumptions.
Vulnerability ID: GHSA-hmmh-292h-3364 Source: osv Title: Weaviate OSS has path traversal vulnerability via the Shard Movement API Description: An issue was discovered in Weaviate OSS before 1.33.4. Due to a lack of validation of the fileName field in the transfer logic, an attacker who can call the GetFile method while...
API CONTRACT & TRUST ASSUMPTION ANALYSIS: GHSA-hmmh-292h-3364 ============================================================ TARGET INTERFACE: github.com/weaviate/weaviate WEAKNESS FOCUS: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') 1. API SCHEMA ENFORCEMENT: Evaluates whether reque...
{"source":"osv","vuln_id":"GHSA-hmmh-292h-3364","task_type":"api_contract_analysis","severity":"CVSS_V4","ecosystem":"Go","language":"Go","cwe":"CWE-22","is_benign":null}
Generate a formal security vulnerability report for this advisory.
Vulnerability ID: MAL-2025-112054 Source: osv Title: Malicious code in legitimate_coyote_copper-100 (npm) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (2a6dfcb0bbda83612ad03d8293fbae87be3d9e01ae9e9d9c30ff1ef74dd6517a) This package appears to be part of the tea.x...
============================================================ SECURITY VULNERABILITY REPORT: MAL-2025-112054 ============================================================ Severity: HIGH Package: legitimate_coyote_copper-100 Ecosystem: npm Published: 2025-11-11T07:47:12Z DESCRIPTION: --- _-= Per source detai...
{"source":"osv","vuln_id":"MAL-2025-112054","task_type":"security_report","severity":"HIGH","ecosystem":"npm","language":"JavaScript","cwe":null,"is_benign":null}
Analyze historical commit history to determine whether past fixes introduced similar weaknesses or security regressions.
Vulnerability ID: PYSEC-2026-4236 Source: osv Title: Langflow: Title Authenticated Remote Code Execution in validate_code via Malicious Decorators Description Description: ###Summary: A critical Authenticated Remote Code Execution (RCE) vulnerability exists in the validate_code function of Langflow. The` /api/v1/va...
HISTORICAL REGRESSION & ANTI-PATTERN ANALYSIS: PYSEC-2026-4236 ============================================================ 1. COMMIT HISTORY AUDIT: Auditing change history in langflow to identify when the flawed logic was introduced. 2. ANTI-PATTERN IDENTIFICATION: Security regressions frequently occur when fe...
{"source":"osv","vuln_id":"PYSEC-2026-4236","task_type":"historical_regression_analysis","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":"CWE-94","is_benign":null}
Provide the regression test for this vulnerability to verify the fix and prevent future regressions.
Vulnerability ID: GHSA-q8hw-4fvp-9rwv Source: osv Title: Nuxt OG Image has unauthenticated SSRF via `fonts[].path` URL parameter Description: ### Summary `nuxt-og-image` exposes an **unauthenticated HTTP endpoint** at `/_og/d/**` that base64url-decodes and `JSON.parse`s a `fonts` URL segment, then passes each `fonts[i]...
REGRESSION TEST: GHSA-q8hw-4fvp-9rwv ============================================================ MAINTAINER REGRESSION TEST (FROM OFFICIAL COMMIT 243cac2 IN nuxt-modules/og-image): File: test/unit/font-ssrf.test.ts ``` import http from 'node:http' import { afterAll, beforeAll, describe, expect, it } from 'vitest' im...
{"source":"osv","vuln_id":"GHSA-q8hw-4fvp-9rwv","task_type":"regression_test","severity":"CVSS_V4","ecosystem":"npm","language":"JavaScript","cwe":"CWE-918","is_benign":null}
Provide a complete, step-by-step setup guide and runnable scripts to demonstrate this vulnerability live in an isolated lab environment.
Vulnerability ID: GO-2023-1515 Source: osv Title: Denial of service when processing Git credentials in github.com/rancher/wrangler Description: A denial of service (DoS) vulnerability exists in the Wrangler Git package. Specially crafted Git credentials can result in a denial of service (DoS) attack on an application t...
LIVE DEMO & PROOF-OF-CONCEPT SETUP GUIDE: GO-2023-1515 ============================================================ PURPOSE: Step-by-step environment setup and execution script to demonstrate this vulnerability (Uncontrolled Resource Consumption) in a safe, isolated lab environment. 1. ENVIRONMENT PREREQUISITES: -...
{"source":"osv","vuln_id":"GO-2023-1515","task_type":"live_demo_setup","severity":"HIGH","ecosystem":"Go","language":"Go","cwe":"CWE-400","is_benign":null}
Analyze this vulnerability from a business logic perspective. Identify flaws in workflows, state machines, authorization, or race conditions that subvert the intended business rules.
Vulnerability ID: GHSA-j6wp-3859-vxfg Source: osv Title: OIDC claims not updated from Identity Provider in Pomerium Description: ### Impact Changes to the OIDC claims of a user after initial login are not reflected in policy evaluation when using [`allowed_idp_claims`](https://www.pomerium.com/reference/#allowed-idp-cl...
BUSINESS LOGIC VULNERABILITY ANALYSIS: GHSA-j6wp-3859-vxfg ============================================================ [1. BUSINESS WORKFLOW INTENT] Describe the intended state machine or workflow (e.g., User Authentication, Checkout Process, Privilege Escalation). [2. LOGIC FLAW / RACE CONDITION] Analyze how an att...
{"source":"osv","vuln_id":"GHSA-j6wp-3859-vxfg","task_type":"business_logic_analysis","severity":"CVSS_V3","ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
Show the patch diff for this vulnerability. What exact code change was made, and what does the before/after comparison look like?
Vulnerability ID: GHSA-x4cm-m36h-c6qj Source: osv Title: Improper Input Validation in ansible Description: An input validation vulnerability was found in Ansible's mysql_user module before 2.2.1.0, which may fail to correctly change a password in certain circumstances. Thus the previous password would still be active w...
PATCH DIFF ANALYSIS: GHSA-x4cm-m36h-c6qj ============================================================ Fix commit: https://github.com/ansible/ansible-modules-core/commit/30fb384e7fb9a94ac3929e4a650877e45d8834c9 REAL GIT UNIFIED PATCH (ansible/ansible-modules-core @ 30fb384): Modified Files: 1 ```diff From 30fb384e7fb...
{"source":"osv","vuln_id":"GHSA-x4cm-m36h-c6qj","task_type":"patch_diff_analysis","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Perform a comprehensive security code review of this Python function. Determine whether any security vulnerabilities are present, identify the security controls implemented, and provide a final assessment.
Component ID: BENIGN-CMD-01 Language: Python Ecosystem: PyPI Domain: Command Injection Prevention ``` import subprocess def inspect_archive(archive_path: str): """Lists archive contents without invoking system shell.""" # Safe: arguments passed as list with shell=False cmd = ['tar', '-tzf', archive_path] ...
SECURITY CODE REVIEW: BENIGN-CMD-01 ============================================================ 1. AUDIT VERDICT: SECURE (NO VULNERABILITY DETECTED) - Severity: NONE - Weakness Analyzed: Command Injection Prevention 2. TECHNICAL JUSTIFICATION: Invokes the binary directly via execve() with argument array; sh...
{"source":"benign_negative_control","vuln_id":"BENIGN-CMD-01-VAR44","task_type":"benign_code_review","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Perform a comprehensive security code review of this Python function. Determine whether any security vulnerabilities are present, identify the security controls implemented, and provide a final assessment.
Component ID: BENIGN-XSS-01 Language: Python Ecosystem: PyPI Domain: Cross-Site Scripting (XSS) Prevention ``` from markupsafe import escape def render_greeting(raw_username: str) -> str: """Safely formats user greeting with contextual HTML escaping.""" safe_name = escape(raw_username) return f"<div class...
SECURITY CODE REVIEW: BENIGN-XSS-01 ============================================================ 1. AUDIT VERDICT: SECURE (NO VULNERABILITY DETECTED) - Severity: NONE - Weakness Analyzed: Cross-Site Scripting (XSS) Prevention 2. TECHNICAL JUSTIFICATION: Explicitly passes untrusted input through MarkupSafe co...
{"source":"benign_negative_control","vuln_id":"BENIGN-XSS-01-VAR92","task_type":"benign_code_review","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Perform explicit uncertainty estimation, stating limitations and identifying missing information required for total certainty.
Vulnerability ID: PYSEC-2026-4236 Source: osv Title: Langflow: Title Authenticated Remote Code Execution in validate_code via Malicious Decorators Description Description: ###Summary: A critical Authenticated Remote Code Execution (RCE) vulnerability exists in the validate_code function of Langflow. The` /api/v1/va...
UNCERTAINTY ESTIMATION & BOUNDING: PYSEC-2026-4236 ============================================================ 1. KNOWN EVIDENCE (HIGH CERTAINTY): - Vulnerability ID: PYSEC-2026-4236 - Weakness Class: CWE-94 - Improper Control of Generation of Code ('Code Injection') - Git Commit Diff: e7c33db (2 files modif...
{"source":"osv","vuln_id":"PYSEC-2026-4236","task_type":"uncertainty_estimation","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":"CWE-94","is_benign":null}
Generate a formal security vulnerability report for this advisory.
Vulnerability ID: GHSA-g66v-54v9-52pr Source: osv Title: Vikunja has SSRF via Todoist/Trello Migration File Attachment URLs that Allows Reading Internal Network Resources Description: ## Summary The migration helper functions `DownloadFile` and `DownloadFileWithHeaders` in `pkg/modules/migration/helpers.go` make arbit...
============================================================ SECURITY VULNERABILITY REPORT: GHSA-g66v-54v9-52pr ============================================================ Severity: CVSS_V3 CWE: CWE-918 (Server-Side Request Forgery (SSRF)) Package: code.vikunja.io/api Ecosystem: Go Published: 2026-...
{"source":"osv","vuln_id":"GHSA-g66v-54v9-52pr","task_type":"security_report","severity":"CVSS_V3","ecosystem":"Go","language":"Go","cwe":"CWE-918","is_benign":null}
Identify security invariants that must always hold and prove whether the code violates them.
Vulnerability ID: GHSA-f6m5-xw2g-xc4x Source: osv Title: Incus has an arbitrary file write on its client due to trusted image hash Description: ### Summary An arbitrary file write exists in the Incus client when a malicious image server returns a crafted `Incus-Image-Hash` header. This can lead to arbitrary command ex...
SECURITY INVARIANT ANALYSIS: GHSA-f6m5-xw2g-xc4x ============================================================ FOCUS WEAKNESS: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22) 1. REQUIRED SECURITY INVARIANTS: - Invariant A: Precondition checks MUST validate all inputs at the s...
{"source":"osv","vuln_id":"GHSA-f6m5-xw2g-xc4x","task_type":"security_invariant_analysis","severity":"CVSS_V3","ecosystem":"Go","language":"Go","cwe":"CWE-22","is_benign":null}
Perform explicit uncertainty estimation, stating limitations and identifying missing information required for total certainty.
Vulnerability ID: MAL-2025-54339 Source: osv Title: Malicious code in putri-kue17-riris (npm) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (be7e87a69adcb86131a1e02e6ae89a5104fdd57b26f0c1b7db6a344e478881fe) This package appears to be part of the tea.xyz token rew...
UNCERTAINTY ESTIMATION & BOUNDING: MAL-2025-54339 ============================================================ 1. KNOWN EVIDENCE (HIGH CERTAINTY): - Vulnerability ID: MAL-2025-54339 - Weakness Class: None - None 2. UNKNOWN / INSIGHT GAPS (MEDIUM/LOW CERTAINTY): - Complete multi-file call graph (source patch ...
{"source":"osv","vuln_id":"MAL-2025-54339","task_type":"uncertainty_estimation","severity":"HIGH","ecosystem":"npm","language":"JavaScript","cwe":null,"is_benign":null}
Perform explicit uncertainty estimation, stating limitations and identifying missing information required for total certainty.
Vulnerability ID: GHSA-3v62-ww8w-758m Source: osv Title: Mercurial Improper Input Validation vulnerability Description: The `mpatch_decode` function in `mpatch.c` in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but a...
UNCERTAINTY ESTIMATION & BOUNDING: GHSA-3v62-ww8w-758m ============================================================ 1. KNOWN EVIDENCE (HIGH CERTAINTY): - Vulnerability ID: GHSA-3v62-ww8w-758m - Weakness Class: None - None 2. UNKNOWN / INSIGHT GAPS (MEDIUM/LOW CERTAINTY): - Complete multi-file call graph (sou...
{"source":"osv","vuln_id":"GHSA-3v62-ww8w-758m","task_type":"uncertainty_estimation","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Perform a comprehensive security code review of this Python function. Determine whether any security vulnerabilities are present, identify the security controls implemented, and provide a final assessment.
Component ID: BENIGN-XSS-01 Language: Python Ecosystem: PyPI Domain: Cross-Site Scripting (XSS) Prevention ``` from markupsafe import escape def render_greeting(raw_username: str) -> str: """Safely formats user greeting with contextual HTML escaping.""" safe_name = escape(raw_username) return f"<div class...
SECURITY CODE REVIEW: BENIGN-XSS-01 ============================================================ 1. AUDIT VERDICT: SECURE (NO VULNERABILITY DETECTED) - Severity: NONE - Weakness Analyzed: Cross-Site Scripting (XSS) Prevention 2. TECHNICAL JUSTIFICATION: Explicitly passes untrusted input through MarkupSafe co...
{"source":"benign_negative_control","vuln_id":"BENIGN-XSS-01-VAR32","task_type":"benign_code_review","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Examine this code pattern. Is it vulnerable to the security weakness described? Explain why this implementation is safe and how to avoid false positives during security audits.
Vulnerability ID: GHSA-j6wp-3859-vxfg Source: osv Title: OIDC claims not updated from Identity Provider in Pomerium Description: ### Impact Changes to the OIDC claims of a user after initial login are not reflected in policy evaluation when using [`allowed_idp_claims`](https://www.pomerium.com/reference/#allowed-idp-cl...
FALSE POSITIVE & SAFE CODE PATTERN ANALYSIS: GHSA-j6wp-3859-vxfg ============================================================ WEAKNESS FOCUS: Security Flaw (None) 1. SAFE CODE PATTERN (NOT VULNERABLE): ``` // SAFE: Proper validation and bounds checking for untrusted input if (!isValid(input)) { throw new Security...
{"source":"osv","vuln_id":"GHSA-j6wp-3859-vxfg","task_type":"false_positive_analysis","severity":"CVSS_V3","ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
Audit this pull request change in C++ for potential security regressions or unsafe practices before merging.
Pull Request Review: PR-BENIGN-MEM-01 Language: C++ Feature Area: Memory Safety ``` #include <vector> #include <span> #include <cstdint> bool safe_copy_payload(std::span<const uint8_t> src, std::span<uint8_t> dest) { // Explicit bounds validation if (src.empty() || src.size() > dest.size()) { return f...
PULL REQUEST SECURITY AUDIT: PR-BENIGN-MEM-01 ============================================================ 1. AUDIT STATUS: APPROVED (CLEAN) - Vulnerabilities Found: 0 - Regression Risk: NEGLIGIBLE 2. CODE QUALITY & DEFENSIVE CONTROLS: - Validates source and destination buffer capacities using std::span befo...
{"source":"benign_negative_control","vuln_id":"BENIGN-MEM-01-VAR46","task_type":"benign_pr_audit","severity":"NONE","ecosystem":"Native","language":"C++","cwe":null,"is_benign":true}
Audit this pull request change in Python for potential security regressions or unsafe practices before merging.
Pull Request Review: PR-BENIGN-SSRF-01 Language: Python Feature Area: Server-Side Request Forgery (SSRF) Prevention ``` import ipaddress, socket, urllib.parse def validate_webhook_url(raw_url: str) -> bool: """Validates URL to prevent SSRF against internal/loopback services.""" parsed = urllib.parse.urlparse(...
PULL REQUEST SECURITY AUDIT: PR-BENIGN-SSRF-01 ============================================================ 1. AUDIT STATUS: APPROVED (CLEAN) - Vulnerabilities Found: 0 - Regression Risk: NEGLIGIBLE 2. CODE QUALITY & DEFENSIVE CONTROLS: - Resolves hostname and asserts destination IP is neither loopback, link...
{"source":"benign_negative_control","vuln_id":"BENIGN-SSRF-01-VAR58","task_type":"benign_pr_audit","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Identify the trust boundaries relevant to this vulnerability. Which boundary was violated, what controls should exist at each boundary, and how should they be reinforced?
Vulnerability ID: GHSA-3v62-ww8w-758m Source: osv Title: Mercurial Improper Input Validation vulnerability Description: The `mpatch_decode` function in `mpatch.c` in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but a...
TRUST BOUNDARY ANALYSIS: GHSA-3v62-ww8w-758m ============================================================ Trust boundaries are points where data transitions between different trust levels. Vulnerabilities occur when data crosses a boundary without proper validation. SYSTEM TRUST BOUNDARIES: +------------------+ ...
{"source":"osv","vuln_id":"GHSA-3v62-ww8w-758m","task_type":"trust_boundary_analysis","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Perform a root cause analysis of this vulnerability. What is the fundamental programming error, and why did it occur?
Vulnerability ID: GHSA-rx2r-q96c-w5cc Source: osv Title: PaddlePaddle floating point exception in paddle.topk Description: FPE in paddle.topkΒ in PaddlePaddle before 2.6.0. This flaw can cause a runtime crash and a denial of service. Severity: CVSS_V3 CWE: CWE-400 CWE Name: Uncontrolled Resource Consumption Package:...
ROOT CAUSE ANALYSIS: GHSA-rx2r-q96c-w5cc ============================================================ WHAT WENT WRONG: FPE in paddle.topkΒ in PaddlePaddle before 2.6.0. This flaw can cause a runtime crash and a denial of service. ROOT CAUSE IDENTIFICATION: The root cause is related to Uncontrolled Resource Consump...
{"source":"osv","vuln_id":"GHSA-rx2r-q96c-w5cc","task_type":"root_cause_analysis","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":"CWE-400","is_benign":null}
Generate a formal security vulnerability report for this advisory.
Vulnerability ID: GHSA-g3vg-vx23-3858 Source: osv Title: compliance-trestle Remote Fetching Mechanism has an Arbitrary File Write via Cache Path Traversal Description: ## Summary The compliance-trestle library's remote fetching cache mechanism (HTTPSFetcher and SFTPFetcher) constructs the local cache file path from th...
============================================================ SECURITY VULNERABILITY REPORT: GHSA-g3vg-vx23-3858 ============================================================ Severity: CVSS_V4 CWE: CWE-94 (Improper Control of Generation of Code ('Code Injection')) Package: compliance-trestle Ecosystem: ...
{"source":"osv","vuln_id":"GHSA-g3vg-vx23-3858","task_type":"security_report","severity":"CVSS_V4","ecosystem":"PyPI","language":"Python","cwe":"CWE-94","is_benign":null}
Rank vulnerability findings using a defensive risk prioritization matrix based on exploitability, impact, and complexity.
Vulnerability ID: GHSA-9ffm-fxg3-xrhh Source: osv Title: NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write Description: ### Summary NiceGUI's `FileUpload.name` property exposes client-supplied filename metadata without sanitization, enabling path traversal when developers use the pat...
DEFENSIVE RISK PRIORITIZATION MATRIX: GHSA-9ffm-fxg3-xrhh ============================================================ ASSESSED SEVERITY: CVSS_V3 ACTION RANK: P3 (LOW PRIORITY) 1. EXPLOITABILITY FACTORS: - Attack Vector: Network / Untrusted Input - Authentication Required: Dependent on environment 2. IMPACT AS...
{"source":"osv","vuln_id":"GHSA-9ffm-fxg3-xrhh","task_type":"risk_prioritization","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":"CWE-94","is_benign":null}
Analyze this vulnerability from a business logic perspective. Identify flaws in workflows, state machines, authorization, or race conditions that subvert the intended business rules.
Vulnerability ID: GO-2026-5986 Source: osv Title: nebula-mesh: Certificate revocation is never enforced at the mesh in github.com/forgekeep/nebula-mesh Description: nebula-mesh: Certificate revocation is never enforced at the mesh in github.com/forgekeep/nebula-mesh Severity: HIGH Package: github.com/forgekeep/nebula-m...
BUSINESS LOGIC VULNERABILITY ANALYSIS: GO-2026-5986 ============================================================ [1. BUSINESS WORKFLOW INTENT] Describe the intended state machine or workflow (e.g., User Authentication, Checkout Process, Privilege Escalation). [2. LOGIC FLAW / RACE CONDITION] Analyze how an attacker c...
{"source":"osv","vuln_id":"GO-2026-5986","task_type":"business_logic_analysis","severity":"HIGH","ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
Trace the data flow across multiple files and function boundaries from the initial user input to the vulnerable execution sink.
Vulnerability ID: PYSEC-2017-112 Source: osv Description: An issue was discovered in Exiv2 0.26. When the data structure of the structure ifd is incorrect, the program assigns pValue_ to 0x0, and the value of pValue() is 0x0. TiffImageEntry::doWriteImage will use the value of pValue() to cause a segmentation fault. To ...
MULTI-FILE / INTERPROCEDURAL DATA FLOW ANALYSIS: PYSEC-2017-112 ============================================================ Perform an interprocedural taint analysis across the affected modules. [1. ENTRY POINT (SOURCE)] Identify the public API, controller, or input boundary where attacker-controlled data enters the...
{"source":"osv","vuln_id":"PYSEC-2017-112","task_type":"multi_file_data_flow_analysis","severity":"CVSS_V3","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Audit this pull request change in Python for potential security regressions or unsafe practices before merging.
Pull Request Review: PR-BENIGN-SQL-01 Language: Python Feature Area: Injection Prevention ``` import psycopg2 def get_user_profile(conn, user_id: str): """Fetches user profile safely using parameterized query.""" with conn.cursor() as cur: # Parameterized query separating code from data query ...
PULL REQUEST SECURITY AUDIT: PR-BENIGN-SQL-01 ============================================================ 1. AUDIT STATUS: APPROVED (CLEAN) - Vulnerabilities Found: 0 - Regression Risk: NEGLIGIBLE 2. CODE QUALITY & DEFENSIVE CONTROLS: - Uses parameterized statement with '%s' placeholder; data is bound separ...
{"source":"benign_negative_control","vuln_id":"BENIGN-SQL-01-VAR70","task_type":"benign_pr_audit","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Provide a complete, step-by-step setup guide and runnable scripts to demonstrate this vulnerability live in an isolated lab environment.
Vulnerability ID: MAL-2023-6774 Source: osv Title: Malicious code in selfvisanvidia (PyPI) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: checkmarx (83df793f564221ea12ca46793ff85288f69686dcc2a04b11b1eb407a988e331f) EsqueleSquad group published nearly 6000 malicious PyPi and NPM pa...
LIVE DEMO & PROOF-OF-CONCEPT SETUP GUIDE: MAL-2023-6774 ============================================================ PURPOSE: Step-by-step environment setup and execution script to demonstrate this vulnerability (security flaw) in a safe, isolated lab environment. 1. ENVIRONMENT PREREQUISITES: - Language Runtime: ...
{"source":"osv","vuln_id":"MAL-2023-6774","task_type":"live_demo_setup","severity":"HIGH","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Analyze the runtime state (memory layout, object graph, DOM state, or execution context) at the time this vulnerability is exploited. Show diagrams appropriate to the language.
Vulnerability ID: GO-2023-1515 Source: osv Title: Denial of service when processing Git credentials in github.com/rancher/wrangler Description: A denial of service (DoS) vulnerability exists in the Wrangler Git package. Specially crafted Git credentials can result in a denial of service (DoS) attack on an application t...
RUNTIME STATE ANALYSIS: GO-2023-1515 ============================================================ GO RUNTIME STATE AT VULNERABILITY: Go's slice internals: type slice struct { ptr *byte // pointer to underlying array len int // current length cap int // capacity } Goroutine state d...
{"source":"osv","vuln_id":"GO-2023-1515","task_type":"runtime_state_analysis","severity":"HIGH","ecosystem":"Go","language":"Go","cwe":"CWE-400","is_benign":null}
Examine this code pattern. Is it vulnerable to the security weakness described? Explain why this implementation is safe and how to avoid false positives during security audits.
Vulnerability ID: GHSA-q8hw-4fvp-9rwv Source: osv Title: Nuxt OG Image has unauthenticated SSRF via `fonts[].path` URL parameter Description: ### Summary `nuxt-og-image` exposes an **unauthenticated HTTP endpoint** at `/_og/d/**` that base64url-decodes and `JSON.parse`s a `fonts` URL segment, then passes each `fonts[i]...
FALSE POSITIVE & SAFE CODE PATTERN ANALYSIS: GHSA-q8hw-4fvp-9rwv ============================================================ WEAKNESS FOCUS: Server-Side Request Forgery (SSRF) (CWE-918) 1. SAFE CODE PATTERN (NOT VULNERABLE): ``` // SAFE: Proper validation and bounds checking for Server-Side Request Forgery (SSRF) if...
{"source":"osv","vuln_id":"GHSA-q8hw-4fvp-9rwv","task_type":"false_positive_analysis","severity":"CVSS_V4","ecosystem":"npm","language":"JavaScript","cwe":"CWE-918","is_benign":null}
Audit this pull request change in Python for potential security regressions or unsafe practices before merging.
Pull Request Review: PR-BENIGN-CMD-01 Language: Python Feature Area: Command Injection Prevention ``` import subprocess def inspect_archive(archive_path: str): """Lists archive contents without invoking system shell.""" # Safe: arguments passed as list with shell=False cmd = ['tar', '-tzf', archive_path] ...
PULL REQUEST SECURITY AUDIT: PR-BENIGN-CMD-01 ============================================================ 1. AUDIT STATUS: APPROVED (CLEAN) - Vulnerabilities Found: 0 - Regression Risk: NEGLIGIBLE 2. CODE QUALITY & DEFENSIVE CONTROLS: - Invokes the binary directly via execve() with argument array; shell=Fal...
{"source":"benign_negative_control","vuln_id":"BENIGN-CMD-01-VAR94","task_type":"benign_pr_audit","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Audit this pull request change in Python for potential security regressions or unsafe practices before merging.
Pull Request Review: PR-BENIGN-SSRF-01 Language: Python Feature Area: Server-Side Request Forgery (SSRF) Prevention ``` import ipaddress, socket, urllib.parse def validate_webhook_url(raw_url: str) -> bool: """Validates URL to prevent SSRF against internal/loopback services.""" parsed = urllib.parse.urlparse(...
PULL REQUEST SECURITY AUDIT: PR-BENIGN-SSRF-01 ============================================================ 1. AUDIT STATUS: APPROVED (CLEAN) - Vulnerabilities Found: 0 - Regression Risk: NEGLIGIBLE 2. CODE QUALITY & DEFENSIVE CONTROLS: - Resolves hostname and asserts destination IP is neither loopback, link...
{"source":"benign_negative_control","vuln_id":"BENIGN-SSRF-01-VAR18","task_type":"benign_pr_audit","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Analyze performance vs security trade-offs and justify secure engineering design choices.
Vulnerability ID: MAL-2023-5353 Source: osv Title: Malicious code in py-minepyencode (PyPI) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: checkmarx (03a1dea7b835920d57e9574efd0c2405bc01a4142e7eaf4cb343d44c0adefa35) EsqueleSquad group published nearly 6000 malicious PyPi and NPM p...
PERFORMANCE VS SECURITY TRADE-OFF ANALYSIS: MAL-2023-5353 ============================================================ TARGET DEFECT: None 1. NAIVE PERFORMANCE OPTIMIZATION (INSECURE): Omitting bounds checks or schema validations in hot execution loops to save CPU cycles. 2. SECURITY IMPACT OF BYPASS: Bypassin...
{"source":"osv","vuln_id":"MAL-2023-5353","task_type":"performance_vs_security","severity":"HIGH","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
Analyze performance vs security trade-offs and justify secure engineering design choices.
Vulnerability ID: GO-2022-0508 Source: osv Title: KubeEdge Cloud AdmissionController component DoS in github.com/kubeedge/kubeedge Description: KubeEdge Cloud AdmissionController component DoS in github.com/kubeedge/kubeedge CWE: CWE-400 CWE Name: Uncontrolled Resource Consumption Package: github.com/kubeedge/kubeedge ...
PERFORMANCE VS SECURITY TRADE-OFF ANALYSIS: GO-2022-0508 ============================================================ TARGET DEFECT: Uncontrolled Resource Consumption 1. NAIVE PERFORMANCE OPTIMIZATION (INSECURE): Omitting bounds checks or schema validations in hot execution loops to save CPU cycles. 2. SECURITY I...
{"source":"osv","vuln_id":"GO-2022-0508","task_type":"performance_vs_security","severity":null,"ecosystem":"Go","language":"Go","cwe":"CWE-400","is_benign":null}
Analyze API contracts, request/response validation, authentication, authorization, and implicit trust assumptions.
Vulnerability ID: GO-2024-2575 Source: osv Title: Helm's Missing YAML Content Leads To Panic in helm.sh/helm/v3 Description: Helm's Missing YAML Content Leads To Panic in helm.sh/helm/v3 Package: helm.sh/helm/v3 Ecosystem: Go Language: Go Fixed Versions: 3.14.2 References: https://github.com/helm/helm/security/advisori...
API CONTRACT & TRUST ASSUMPTION ANALYSIS: GO-2024-2575 ============================================================ TARGET INTERFACE: helm.sh/helm/v3 WEAKNESS FOCUS: None 1. API SCHEMA ENFORCEMENT: Evaluates whether request schemas strictly validate data types, string lengths, and payload parameters at entry. 2. ...
{"source":"osv","vuln_id":"GO-2024-2575","task_type":"api_contract_analysis","severity":null,"ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
Trace the complete data flow of this vulnerability from the untrusted input source through the system to the security-sensitive sink. Include a data flow diagram.
Vulnerability ID: GO-2026-6209 Source: osv Title: Traefik: Gateway API route identity collision allows cross-namespace backend hijacking in github.com/traefik/traefik Description: Traefik: Gateway API route identity collision allows cross-namespace backend hijacking in github.com/traefik/traefik Package: github.com/tra...
DATA FLOW TRACE: GO-2026-6209 ============================================================ This traces untrusted data from entry to exploitation. PHASE 1 β€” SOURCE (where untrusted data enters): Sources: Any user-controllable input including HTTP parameters, headers, file contents, environment variables, IPC messa...
{"source":"osv","vuln_id":"GO-2026-6209","task_type":"data_flow_trace","severity":null,"ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
Review Docker, Kubernetes, Terraform, CI/CD pipelines, IAM policies, and secrets management configurations.
Vulnerability ID: GO-2024-2575 Source: osv Title: Helm's Missing YAML Content Leads To Panic in helm.sh/helm/v3 Description: Helm's Missing YAML Content Leads To Panic in helm.sh/helm/v3 Package: helm.sh/helm/v3 Ecosystem: Go Language: Go Fixed Versions: 3.14.2 References: https://github.com/helm/helm/security/advisori...
CONFIGURATION & INFRASTRUCTURE SECURITY REVIEW: GO-2024-2575 ============================================================ SECURITY WEAKNESS CONTEXT: None 1. INFRASTRUCTURE & CONTAINER HARDENING AUDIT: Target Component: helm.sh/helm/v3 - Verify non-root user execution in containerized environments. - Enforce ...
{"source":"osv","vuln_id":"GO-2024-2575","task_type":"config_security_review","severity":null,"ecosystem":"Go","language":"Go","cwe":null,"is_benign":null}
A static analysis security testing (SAST) tool flagged this Python code snippet with a warning for Insecure Deserialization Prevention. Analyze the code and triage whether this alert is a True Positive or a False Positive. Justify your reasoning.
SAST Alert ID: SAST-WARN-BENIGN-DESER-01 Target Language: Python Flagged Rule: Potential Insecure Deserialization Prevention ``` from pydantic import BaseModel, Field, ValidationError import json class UserRegistrationRequest(BaseModel): username: str = Field(..., min_length=3, max_length=50) email: str a...
SAST ALERT TRIAGE: SAST-WARN-BENIGN-DESER-01 ============================================================ 1. TRIAGE DECISION: FALSE POSITIVE (DISMISS ALERT) - Finding Severity: NONE (Benign Implementation) 2. ROOT CAUSE OF SAST WARNING: The static analysis scanner generated a heuristic warning because a sensiti...
{"source":"benign_negative_control","vuln_id":"BENIGN-DESER-01-VAR49","task_type":"false_positive_triage","severity":"NONE","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":true}
Perform frontier security research reasoning using the exact 12-step format: Understand -> Analyze -> Evidence -> Alternative Hypotheses -> Root Cause -> Security Principle -> Impact -> Fix -> Verification -> Self-Review -> Confidence -> Limitations. Ground all statements strictly in provided evidence.
Vulnerability ID: MAL-2024-12203 Source: osv Title: Malicious code in artifact-lab-3-package-d7d52d45 (PyPI) Description: --- _-= Per source details. Do not edit below this line.=-_ ## Source: kam193 (a252566eebeb4e8bc418b7ed0e585a4fee2602d921969b20b4075ec5df8d50fa) Packages showing simple variants of revshell with t...
STRUCTURED SECURITY REASONING: MAL-2024-12203 ============================================================ -> UNDERSTAND: Target package 'artifact-lab-3-package-d7d52d45' (Python) is affected by a security flaw (Unclassified). Advisory summary: Malicious code in artifact-lab-3-package-d7d52d45 (PyPI) -> ANALYZE: Anal...
{"source":"osv","vuln_id":"MAL-2024-12203","task_type":"structured_reasoning","severity":"HIGH","ecosystem":"PyPI","language":"Python","cwe":null,"is_benign":null}
End of preview. Expand in Data Studio

πŸ›‘οΈ Cybersecurity Dataset V1 (Initial Multi-Hypothesis & Root-Cause Analysis Corpus)

Cybersecurity Dataset V1 is the foundational instruction-tuning dataset created for defensive cybersecurity research, multi-hypothesis vulnerability reasoning, and secure code review.

The dataset contains 500 curated examples structured in standard instruction format:

  • Train Split (train.jsonl): 450 examples (90%).
  • Validation Split (eval.jsonl): 50 examples (10%).

πŸ” Data Provenance & Sources: Where the Data Came From

  1. Open Source Vulnerabilities (OSV.dev):
    • Public vulnerability records cross-referenced against PyPI, Go, Rust (crates.io), and npm packages.
  2. GitHub Security Advisory Database (GHSA) & NVD:
    • Detailed vulnerability descriptions, severity metrics (CVSS), and associated Common Weakness Enumeration (CWE) categories.
  3. C/C++ Memory Safety & Concurrency Reviews:
    • Multi-hypothesis root cause analysis scenarios examining buffer overflows, race conditions, pointer arithmetic errors, and dangling pointers.

πŸ“‹ Data Schema

Each record contains the following fields:

  • instruction (string): The analytical security prompt (e.g., "Evaluate multiple alternative root cause hypotheses...").
  • input (string): Target vulnerability report, advisory summary, or source code snippet.
  • output (string): The expert security analysis, hypothesis ranking, and verified mitigation.
  • metadata (string): Supplementary context including vulnerability ID, ecosystem, and reference links.

βš–οΈ Intended Use & Ethics

This dataset is intended solely for defensive cybersecurity education, code auditing, and automated vulnerability triage. It does NOT contain weaponized offensive payloads or dual-use exploits.

Downloads last month
41