Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
task_id: string
category: string
split: string
seed: double
domain: string
system_prompt: string
user_prompt: string
vulnerable_code: string
reference_patch: string
functional_tests: string
exploit_tests: string
metadata: struct<cwe: string, fn: string>
  child 0, cwe: string
  child 1, fn: string
source: string
messages: list<item: struct<role: string, content: string>>
  child 0, item: struct<role: string, content: string>
      child 0, role: string
      child 1, content: string
to
{'task_id': Value('string'), 'category': Value('string'), 'source': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 623, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              task_id: string
              category: string
              split: string
              seed: double
              domain: string
              system_prompt: string
              user_prompt: string
              vulnerable_code: string
              reference_patch: string
              functional_tests: string
              exploit_tests: string
              metadata: struct<cwe: string, fn: string>
                child 0, cwe: string
                child 1, fn: string
              source: string
              messages: list<item: struct<role: string, content: string>>
                child 0, item: struct<role: string, content: string>
                    child 0, role: string
                    child 1, content: string
              to
              {'task_id': Value('string'), 'category': Value('string'), 'source': Value('string'), 'messages': List({'role': Value('string'), 'content': Value('string')})}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1382, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 958, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

task_id
string
category
string
source
string
messages
list
pg-train-sqli-0000
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0001
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0002
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0003
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0004
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0005
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0006
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-crypto_secrets-0007
crypto_secrets
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0008
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0009
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0010
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0011
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0012
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0014
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-crypto_secrets-0015
crypto_secrets
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0016
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0017
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0018
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0019
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0020
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0021
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0022
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0024
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0025
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0026
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0027
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0028
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-crypto_secrets-0031
crypto_secrets
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0032
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0033
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0034
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0035
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0036
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0037
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0038
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-crypto_secrets-0039
crypto_secrets
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0040
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0041
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0042
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0043
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0044
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0046
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0048
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0049
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0050
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0051
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0052
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0053
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0054
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0056
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0057
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0058
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0059
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0060
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0061
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-xss-0062
xss
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-sqli-0064
sqli
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-path_traversal-0065
path_traversal
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-cmd_injection-0066
cmd_injection
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-ssrf-0067
ssrf
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-idor_auth-0068
idor_auth
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-unsafe_deser_eval-0069
unsafe_deser_eval
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
pg-train-crypto_secrets-0071
crypto_secrets
openrouter:openai/gpt-4.1-mini
[ { "role": "system", "content": "You are PatchGuard, a security-focused Python engineer. Fix the security vulnerabilities in the provided Python module without breaking any existing functionality or public API signatures. Use proper structural defenses (parameterized SQL, canonical Path confinement, shell=Fa...
End of preview.

PatchGuard-Inkling Dataset & Trajectories (dehackangel/patchguard-inkling-data)

Training, evaluation, grounding, Offline GRPO preference/reward rollouts, and redacted agent build trajectories for PatchGuard-Inkling (thinkingmachines/Inkling-2-Mini post-trained for the White Circle Halo Competition).


Repository Contents

File Size (bytes) Description
sft_train.jsonl 448,550 Stage 1 SFT dataset synthesized with openai/gpt-4.1-mini (OpenRouter) and grounded against Firecrawl security docs (184,743 unmasked training tokens).
val.jsonl 214,148 Validation split with strict vocabulary & prompt decontamination against train, test, and fresh.
test.jsonl 428,568 Held-out test evaluation split across 8 Python CWE families.
fresh.jsonl 429,241 Unseen domain evaluation split (fresh) testing generalization without prompt/identifier overlap.
firecrawl_grounding.jsonl 236,720 48 security best-practice grounding documents retrieved via Firecrawl.
rl_prompts.jsonl 316,395 48 decontaminated val RL prompts (unsafe_deser_eval: 10, ssrf: 8, 5 each across the other 6 CWEs; 0 exact or near hits).
offline_grpo_whitecircle.jsonl 357,186 242 scored candidates (192 Stage 1 SFT rollouts + 48 Nebius Qwen/Qwen3-30B-A3B-Instruct-2507 shortcut contrasts + clean anchors) scored jointly by the isolated exploit verifier and 12 live White Circle policies (75 flagged, 32 test-passing shortcuts caught; clean vs. shortcut reward 1.0000 vs. 0.2487).
offline_grpo_tests_only.jsonl 356,922 Paired ablation dataset scored without White Circle anti-shortcut rewards (clean vs. shortcut reward 1.0000 vs. 0.4182).
decontamination_report.json 162 Automated decontamination verification (0 exact hits, 0 near hits at max_jaccard_threshold=0.85).
trajectories.tar.gz 380,110 Secret-redacted agent build trajectory logs for the full end-to-end PatchGuard-Inkling run.

Covered Vulnerability Families (8 CWEs)

  1. sqli β€” SQL injection (parameterized queries)
  2. path_traversal β€” Path traversal (canonical Path.resolve() containment checks)
  3. cmd_injection β€” Command injection (shell=False argument lists)
  4. ssrf β€” Server-side request forgery (scheme, private-IP/loopback & metadata blocks)
  5. idor_auth β€” Broken object-level authorization / ownership checks
  6. unsafe_deser_eval β€” Unsafe pickle / yaml.load / eval replacement
  7. xss β€” Cross-site scripting (contextual html.escape)
  8. crypto_secrets β€” Weak hashes / hardcoded secrets / CSPRNG (secrets, PBKDF2/HMAC)
Downloads last month
-

Models trained or fine-tuned on dehackangel/patchguard-inkling-data