File size: 858 Bytes
72bc633
 
5d79ddf
 
55609dc
5d79ddf
72bc633
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: PatchHawk
version: 1.0.0
spec_version: 1
type: space
runtime: docker
port: 7860
description: Detect and patch supply-chain vulnerabilities in Python code.
tags: [security, supply-chain, code-review, llm-agent]
tasks:
  - id: easy_typosquat
    name: Detect typosquatting import
    description: Identify a malicious import like 'pythonn' instead of 'python'
    difficulty: easy
    grader: patchhawk.tasks:grade_easy
    max_steps: 5
  - id: medium_obfuscated
    name: Identify obfuscated backdoor
    description: Find base64-encoded exec backdoor
    difficulty: medium
    grader: patchhawk.tasks:grade_medium
    max_steps: 5
  - id: hard_patch
    name: Generate and validate a patch
    description: Submit a working patch that removes vulnerability and passes tests
    difficulty: hard
    grader: patchhawk.tasks:grade_hard
    max_steps: 8