Update data: 5 units
Browse files- computing_math/data_pipeline_etl_instance_1/base/software
- computing_math/dit_pipeline_cfg_alignment_fid_256_001/base/input
- computing_math/dit_pipeline_cfg_alignment_fid_256_001/base/software
- computing_math/ghidra_malware_config_extraction_01/base/input
- computing_math/ghidra_malware_config_extraction_01/base/software
- tasks/computing_math/data_pipeline_etl_instance_1/base/software/README.txt +13 -0
- tasks/computing_math/data_pipeline_etl_instance_1/base/software/python_etl_env.sh +10 -0
- tasks/computing_math/dit_pipeline_cfg_alignment_fid_256_001/base/software/README.md +8 -0
- tasks/computing_math/ghidra_malware_config_extraction_01/base/input/sample.exe +0 -0
- tasks/computing_math/ghidra_malware_config_extraction_01/base/software/README.txt +11 -0
- tasks/computing_math/ghidra_malware_config_extraction_01/base/software/launch_ghidra.bat +7 -0
- tasks/computing_math/ghidra_malware_config_extraction_01/base/software/provision_ghidra_runtime.ps1 +111 -0
- tasks/computing_math/ghidra_malware_config_extraction_01/base/software/software_manifest.json +14 -0
tasks/computing_math/data_pipeline_etl_instance_1/base/software/README.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Optional helper entry point for this Linux ETL task:
|
| 2 |
+
|
| 3 |
+
- `python_etl_env.sh`
|
| 4 |
+
|
| 5 |
+
That wrapper uses the staged `input/runtime_env/` UV project and keeps its
|
| 6 |
+
materialized `.venv` plus cache under `output/_runtime/` so the three required
|
| 7 |
+
deliverables can stay at the output-directory root.
|
| 8 |
+
|
| 9 |
+
Typical usage:
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
./software/python_etl_env.sh python your_script.py
|
| 13 |
+
```
|
tasks/computing_math/data_pipeline_etl_instance_1/base/software/python_etl_env.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 4 |
+
TASK_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
| 5 |
+
WORK_DIR="${DATA_PIPELINE_RUNTIME_WORK_DIR:-$TASK_DIR/output/_runtime}"
|
| 6 |
+
mkdir -p "$WORK_DIR/.uv-cache" "$WORK_DIR/.venv"
|
| 7 |
+
export UV_CACHE_DIR="$WORK_DIR/.uv-cache"
|
| 8 |
+
export UV_PROJECT_ENVIRONMENT="$WORK_DIR/.venv"
|
| 9 |
+
unset VIRTUAL_ENV
|
| 10 |
+
uv run --project "$TASK_DIR/input/runtime_env" --frozen -- "$@"
|
tasks/computing_math/dit_pipeline_cfg_alignment_fid_256_001/base/software/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Software Note
|
| 2 |
+
|
| 3 |
+
No extra staged launcher is required for this task.
|
| 4 |
+
|
| 5 |
+
The solve-time benchmark contract is only:
|
| 6 |
+
|
| 7 |
+
- read files from `input/`
|
| 8 |
+
- write the repaired file to `output/pipeline_dit.py`
|
tasks/computing_math/ghidra_malware_config_extraction_01/base/input/sample.exe
CHANGED
|
Binary files a/tasks/computing_math/ghidra_malware_config_extraction_01/base/input/sample.exe and b/tasks/computing_math/ghidra_malware_config_extraction_01/base/input/sample.exe differ
|
|
|
tasks/computing_math/ghidra_malware_config_extraction_01/base/software/README.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Task-local reverse-engineering runtime for cybersecurity/ghidra_malware_config_extraction_01.
|
| 2 |
+
|
| 3 |
+
Agent launch path:
|
| 4 |
+
- `software\launch_ghidra.bat` from the agent-visible task wrapper
|
| 5 |
+
|
| 6 |
+
Pinned software:
|
| 7 |
+
- Ghidra 11.3 from the official NSA GitHub release
|
| 8 |
+
- Eclipse Temurin JDK 21.0.10+7 for Windows x64
|
| 9 |
+
|
| 10 |
+
Stage 1 keeps both artifacts inside the task-owned software directory.
|
| 11 |
+
No global Program Files install, PATH change, or Desktop shortcut is required.
|
tasks/computing_math/ghidra_malware_config_extraction_01/base/software/launch_ghidra.bat
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
set "SOFTWARE_ROOT=%~dp0"
|
| 4 |
+
if "%SOFTWARE_ROOT:~-1%"=="\" set "SOFTWARE_ROOT=%SOFTWARE_ROOT:~0,-1%"
|
| 5 |
+
set "JAVA_HOME=%SOFTWARE_ROOT%\jdk-21.0.10+7"
|
| 6 |
+
set "PATH=%JAVA_HOME%\bin;%PATH%"
|
| 7 |
+
call "%SOFTWARE_ROOT%\ghidra_11.3_PUBLIC\ghidraRun.bat"
|
tasks/computing_math/ghidra_malware_config_extraction_01/base/software/provision_ghidra_runtime.ps1
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$ErrorActionPreference = "Stop"
|
| 2 |
+
$ProgressPreference = "SilentlyContinue"
|
| 3 |
+
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
| 4 |
+
$softwareRoot = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software"
|
| 5 |
+
$ghidraZip = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\ghidra_11.3_PUBLIC_20250205.zip"
|
| 6 |
+
$jdkZip = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\OpenJDK21U-jdk_x64_windows_hotspot_21.0.10_7.zip"
|
| 7 |
+
$ghidraDir = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\ghidra_11.3_PUBLIC"
|
| 8 |
+
$jdkDir = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\jdk-21.0.10+7"
|
| 9 |
+
$launcherPath = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\launch_ghidra.bat"
|
| 10 |
+
$statusPath = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\provision_status.json"
|
| 11 |
+
$logPath = "E:\agenthle\cybersecurity\ghidra_malware_config_extraction_01\base\software\provision_runtime.log"
|
| 12 |
+
|
| 13 |
+
function Write-Status($status, $message) {
|
| 14 |
+
$payload = @{
|
| 15 |
+
status = $status
|
| 16 |
+
message = $message
|
| 17 |
+
ghidra_dir = $ghidraDir
|
| 18 |
+
jdk_dir = $jdkDir
|
| 19 |
+
launcher = $launcherPath
|
| 20 |
+
updated_at = (Get-Date).ToString("o")
|
| 21 |
+
} | ConvertTo-Json -Depth 4
|
| 22 |
+
Set-Content -Path $statusPath -Value $payload -Encoding UTF8
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
function Ensure-Download($url, $dest) {
|
| 26 |
+
if (Test-Path $dest) {
|
| 27 |
+
return
|
| 28 |
+
}
|
| 29 |
+
Invoke-WebRequest -Uri $url -OutFile $dest -UseBasicParsing
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
function Ensure-Expanded($zipPath, $targetDir) {
|
| 33 |
+
if (Test-Path $targetDir) {
|
| 34 |
+
return
|
| 35 |
+
}
|
| 36 |
+
Expand-Archive -LiteralPath $zipPath -DestinationPath $softwareRoot -Force
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
function Repair-ExpandedZipLayout($zipPath, $targetDir, $rootDirName) {
|
| 40 |
+
New-Item -ItemType Directory -Force -Path $targetDir | Out-Null
|
| 41 |
+
$zip = [IO.Compression.ZipFile]::OpenRead($zipPath)
|
| 42 |
+
try {
|
| 43 |
+
foreach ($entry in $zip.Entries) {
|
| 44 |
+
if (-not $entry.FullName.StartsWith($rootDirName + "/")) {
|
| 45 |
+
continue
|
| 46 |
+
}
|
| 47 |
+
$relative = $entry.FullName.Substring($rootDirName.Length + 1).Replace("/", "\")
|
| 48 |
+
if ([string]::IsNullOrEmpty($relative)) {
|
| 49 |
+
continue
|
| 50 |
+
}
|
| 51 |
+
$destinationPath = Join-Path $targetDir $relative
|
| 52 |
+
if ($entry.FullName.EndsWith("/")) {
|
| 53 |
+
if (-not (Test-Path -LiteralPath $destinationPath)) {
|
| 54 |
+
New-Item -ItemType Directory -Force -Path $destinationPath | Out-Null
|
| 55 |
+
}
|
| 56 |
+
continue
|
| 57 |
+
}
|
| 58 |
+
if (Test-Path -LiteralPath $destinationPath) {
|
| 59 |
+
continue
|
| 60 |
+
}
|
| 61 |
+
$parentDir = Split-Path -Parent $destinationPath
|
| 62 |
+
if (-not [string]::IsNullOrEmpty($parentDir)) {
|
| 63 |
+
New-Item -ItemType Directory -Force -Path $parentDir | Out-Null
|
| 64 |
+
}
|
| 65 |
+
[IO.Compression.ZipFileExtensions]::ExtractToFile($entry, $destinationPath, $false)
|
| 66 |
+
}
|
| 67 |
+
} finally {
|
| 68 |
+
$zip.Dispose()
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
function Normalize-GhidraLayout($ghidraDir) {
|
| 73 |
+
$nestedDir = Join-Path $ghidraDir "Ghidra"
|
| 74 |
+
$rootRun = Join-Path $ghidraDir "ghidraRun.bat"
|
| 75 |
+
$nestedRun = Join-Path $nestedDir "ghidraRun.bat"
|
| 76 |
+
if ((-not (Test-Path $rootRun)) -and (Test-Path $nestedRun)) {
|
| 77 |
+
Get-ChildItem -LiteralPath $nestedDir -Force | ForEach-Object {
|
| 78 |
+
Move-Item -LiteralPath $_.FullName -Destination $ghidraDir -Force
|
| 79 |
+
}
|
| 80 |
+
Remove-Item -LiteralPath $nestedDir -Recurse -Force
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
Start-Transcript -Path $logPath -Append | Out-Null
|
| 85 |
+
try {
|
| 86 |
+
New-Item -ItemType Directory -Force -Path $softwareRoot | Out-Null
|
| 87 |
+
Write-Status "running" "starting task-local Ghidra runtime provisioning"
|
| 88 |
+
Ensure-Download "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.3_build/ghidra_11.3_PUBLIC_20250205.zip" $ghidraZip
|
| 89 |
+
Ensure-Download "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jdk_x64_windows_hotspot_21.0.10_7.zip" $jdkZip
|
| 90 |
+
Ensure-Expanded $ghidraZip $ghidraDir
|
| 91 |
+
Ensure-Expanded $jdkZip $jdkDir
|
| 92 |
+
Repair-ExpandedZipLayout $ghidraZip $ghidraDir "ghidra_11.3_PUBLIC"
|
| 93 |
+
Repair-ExpandedZipLayout $jdkZip $jdkDir "jdk-21.0.10+7"
|
| 94 |
+
Normalize-GhidraLayout $ghidraDir
|
| 95 |
+
if (-not (Test-Path $launcherPath)) {
|
| 96 |
+
throw "launcher missing: $launcherPath"
|
| 97 |
+
}
|
| 98 |
+
if (-not (Test-Path (Join-Path $ghidraDir "ghidraRun.bat"))) {
|
| 99 |
+
throw "ghidraRun.bat missing after extract"
|
| 100 |
+
}
|
| 101 |
+
if (-not (Test-Path (Join-Path $jdkDir "bin\java.exe"))) {
|
| 102 |
+
throw "task-local java.exe missing after extract"
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
Write-Status "ok" "task-local Ghidra runtime extracted and launcher paths verified"
|
| 106 |
+
} catch {
|
| 107 |
+
Write-Status "error" $_.Exception.Message
|
| 108 |
+
throw
|
| 109 |
+
} finally {
|
| 110 |
+
Stop-Transcript | Out-Null
|
| 111 |
+
}
|
tasks/computing_math/ghidra_malware_config_extraction_01/base/software/software_manifest.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ghidra": {
|
| 3 |
+
"version": "11.3",
|
| 4 |
+
"zip_name": "ghidra_11.3_PUBLIC_20250205.zip",
|
| 5 |
+
"extract_dir": "ghidra_11.3_PUBLIC",
|
| 6 |
+
"download_url": "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.3_build/ghidra_11.3_PUBLIC_20250205.zip"
|
| 7 |
+
},
|
| 8 |
+
"jdk": {
|
| 9 |
+
"version": "21.0.10+7",
|
| 10 |
+
"zip_name": "OpenJDK21U-jdk_x64_windows_hotspot_21.0.10_7.zip",
|
| 11 |
+
"extract_dir": "jdk-21.0.10+7",
|
| 12 |
+
"download_url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jdk_x64_windows_hotspot_21.0.10_7.zip"
|
| 13 |
+
}
|
| 14 |
+
}
|