Logo Unknown Vector Analysis

Unknown Vector Analysis

Tổ chức
blacklanternsecurity
unknown-vector-analysis

Phân tích ứng dụng, script và tệp nhị phân tùy chỉnh mà các kỹ năng kỹ thuật tiêu chuẩn không thể khai thác. Thực hiện rà soát mã nguồn, lập bản đồ bề mặt tấn công, nghiên cứu CVE và điều chỉnh PoC. Chuyển đến đây khi BẤT KỲ tác nhân kỹ thuật nào báo rằng các mẫu tiêu chuẩn không phù hợp, mục tiêu dùng ứng dụng tùy chỉnh/không rõ nguồn gốc hoặc không có kỹ năng kỹ thuật hiện có nào bao quát được phương thức tấn công. Cụm từ kích hoạt: "standard patterns don't match", "custom script", "unknown binary", "no matching technique", "unrecognized application". KHÔNG dùng cho các nhóm lỗ hổng đã biết có kỹ năng kỹ thuật riêng — hãy chuyển đến kỹ năng tương ứng.

Add to TypingMind

Tổng quan

Nhà phát hànhblacklanternsecurity
Kho mãred-run
Tên kỹ năngunknown-vector-analysis
Sao
276
Bản fork
39
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépGPL-3.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được blacklanternsecurity công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Unknown Vector Analysis trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/blacklanternsecurity/red-run/tree/main/skills/research/unknown-vector-analysis
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/blacklanternsecurity/red-run.git /tmp/red-run
mkdir -p .claude/skills
cp -r /tmp/red-run/skills/research/unknown-vector-analysis .claude/skills/unknown-vector-analysis
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Unknown Vector Analysis trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Unknown Vector Analysis ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Unknown Vector Analysis với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Unknown Vector Analysis

You are helping a penetration tester analyze a custom application, script, or binary that standard technique skills could not exploit. The previous agent exhausted its methodology and returned without finding a matching pattern. Your job is deep analysis — characterize the target artifact, map its attack surface, research known vulnerabilities in its dependencies, and develop a working exploit.

All testing is performed under explicit written authorization.

Engagement Logging

Check for ./engagement/ directory. If absent, proceed without logging.

When an engagement directory exists:

  • Print [unknown-vector-analysis] Activated → <artifact> on activation.
  • Save all evidence to engagement/evidence/research/ with descriptive filenames (e.g., custom-backup-script-analysis.md, cve-2025-4517-poc-adapted.py).

Create the research evidence directory if it doesn't exist:

bash
mkdir -p engagement/evidence/research

Scope Boundary

Analyze ONE artifact, find ONE exploitation vector. If your analysis identifies a known vulnerability class that has an existing technique skill (e.g., "this is SQL injection", "this is a deserialization flaw"), note the class and context in your return summary for the orchestrator to route — do NOT load a second skill or attempt exploitation via a different skill's methodology.

Stay in methodology. Only use analysis techniques documented in this skill. If you encounter a scenario requiring specialized tooling not listed here (e.g., IDA Pro, Ghidra for complex binary RE), note it and return.

State Management

Call get_state_summary() from the state MCP server to read current engagement state. Use it to:

  • Understand what was already attempted and failed
  • Check current access level and method on the target
  • Identify the artifact context (how was it discovered, why is it interesting)

Exploit and Tool Transfer

Never download exploits, scripts, or tools directly to the target from the internet. Targets may lack outbound access, and operators must review files before execution on target.

Workflow:

  1. Download/clone PoCs on the attackbox
  2. Save to engagement/evidence/research/
  3. Adapt to target context
  4. Serve via python3 -m http.server or transfer with scp/nc/base64
  5. Pull from target

Inline source code in heredocs is fine — the operator can read it in the skill.

Web Research Integration

You have access to WebSearch and WebFetch for CVE research and PoC discovery. Use them systematically:

CVE/vulnerability research:

  • WebSearch with exact version strings: "python 3.12.1 tarfile CVE", "libarchive 3.6.2 vulnerability", "sudo 1.9.5 exploit"
  • Search exploit databases: "<software> <version> exploit-db", "<software> <version> github PoC"
  • Search for known bypass techniques: "<mechanism> bypass <language>"

PoC retrieval:

  • WebFetch to retrieve PoC source code from GitHub, exploit-db, or security advisories
  • Always save the original PoC to engagement/evidence/research/ before modifying — preserve the source URL in a comment at the top
  • Document the source URL in your return summary

Research discipline:

  • Start with the most specific query (exact version + software name)
  • Broaden only if specific queries return nothing
  • Don't spend more than 3 search rounds on a single hypothesis — move to the next analysis track

Prerequisites

  • Shell access: Interactive shell on the target host (reverse shell or SSH) where the artifact resides. Limited shells (web shell, blind command injection) are insufficient for deep analysis.
  • Artifact location: The orchestrator must provide the path to the custom application, script, or binary on the target.
  • Context from previous agent: What was already attempted and why it failed (the orchestrator passes this from the blocked technique agent's return).
  • Tools on attackbox: python3, file, strings. For binary analysis: strace, ltrace, objdump, readelf, ldd. These are standard on most Linux attackboxes.

Methodology

Step 1: Characterize the Artifact

Determine what you're working with:

For scripts (readable source):

bash
file <artifact>
head -1 <artifact>   # shebang line
cat <artifact>        # read full source

Identify: language, runtime version, libraries/imports, total LOC.

For compiled binaries:

bash
file <artifact>
ldd <artifact>        # shared libraries
strings <artifact> | head -100   # embedded strings
readelf -h <artifact>  # ELF header (architecture, type)

Identify: language/compiler, linked libraries, architecture, static vs dynamic.

For services/daemons:

bash
ps aux | grep <service>
cat /proc/<pid>/cmdline | tr '\0' ' '
ls -la /proc/<pid>/exe
cat /proc/<pid>/environ | tr '\0' '\n'   # environment variables

Record your characterization before proceeding.

Step 2: Map Attack Surface

Identify all user-controlled inputs and security-sensitive operations:

User-controlled inputs:

  • Command-line arguments (sys.argv, $1, argc/argv)
  • Environment variables (os.environ, getenv())
  • File contents (config files, input files, stdin)
  • Network input (sockets, HTTP parameters)

Security-sensitive operations (look for these patterns):

  • File I/O: open/read/write, path construction, symlink following
  • Archive extraction: tarfile, zipfile, libarchive (path traversal)
  • Deserialization: pickle, yaml.load, unserialize, JSON with type hints
  • Command execution: os.system, subprocess, exec, eval, backticks
  • SQL queries: string concatenation with user input
  • Privilege transitions: setuid, setgid, capabilities, sudo context

Trust boundaries:

  • Where does user input enter the program?
  • Where does privileged operation occur?
  • What validation sits between them?

Map the data flow from each input to each sensitive operation.

Step 3: Identify Safety Mechanisms

Document every validation, sanitization, or access control:

  • Input validation (regex, allowlist, type checking)
  • Path sanitization (realpath, basename, chroot)
  • Sandboxing (seccomp, AppArmor, SELinux, chroot)
  • Privilege dropping (setuid/setgid after initialization)

For each mechanism, document:

  1. What it protects — which attack vector it prevents
  2. What it doesn't protect — gaps, edge cases, assumptions
  3. Implementation quality — is the check correct? Race conditions?

Step 4: Research Bypasses

Pursue two parallel tracks:

Track A — Library/interpreter CVEs:

  1. Extract exact versions of the runtime and key libraries:
    bash
    python3 --version
    pip show <library>
    dpkg -l | grep <library>
    rpm -qa | grep <library>
  2. Search for known CVEs:
    WebSearch("<library> <version> CVE")
    WebSearch("<library> <version> security advisory")
  3. Check if the artifact's usage pattern triggers the vulnerability

Track B — Logic bypasses:

  • Race conditions / TOCTOU: check-then-use with predictable paths
  • Symlink attacks: temporary file creation, archive extraction
  • Path traversal: ../ in filenames, archive entries, URL paths
  • Encoding bypasses: URL encoding, Unicode normalization, null bytes
  • Type confusion: unexpected types in dynamic languages
  • Integer overflow: size/length calculations in C/C++
  • Environment manipulation: PATH, LD_PRELOAD, PYTHONPATH, LD_LIBRARY_PATH

Step 5: PoC Discovery and Adaptation

When you've identified a likely vulnerability:

  1. Search for existing PoCs:

    WebSearch("<CVE-ID> PoC github")
    WebSearch("<CVE-ID> exploit proof of concept")
    WebSearch("<vulnerability-type> <software> exploit")
  2. Retrieve and save:

    WebFetch("<PoC-URL>")

    Save the original to engagement/evidence/research/ with source URL.

  3. Adapt to target context:

    • Adjust paths, filenames, and parameters for the target environment
    • Modify payload to match the exploitation goal (shell, file read, privesc)
    • Add comments explaining each adaptation
    • Save the adapted version alongside the original
  4. If no existing PoC:

    • Write a minimal exploit based on your analysis
    • Comment every step explaining the vulnerability mechanics
    • Save to engagement/evidence/research/

Step 6: Binary Analysis (Compiled Targets Only)

Skip this step for scripts with readable source.

Dynamic analysis:

bash
# Trace system calls
strace -f -e trace=file,process,network <artifact> <args> 2>&1 | tee strace-output.txt

# Trace library calls
ltrace -f <artifact> <args> 2>&1 | tee ltrace-output.txt

Static analysis:

bash
# Disassemble key functions
objdump -d <artifact> | grep -A 50 '<main>'

# Check for dangerous functions
objdump -T <artifact> | grep -E 'system|exec|popen|gets|strcpy|sprintf'

# Security features
checksec --file=<artifact>   # if available
readelf -l <artifact> | grep -i stack
readelf -d <artifact> | grep -i relro

Environment variable influence:

  • PATH manipulation (if the binary calls external commands without full paths)
  • LD_PRELOAD injection (if not SUID or SUID without secure-execution)
  • LD_LIBRARY_PATH (same constraints as LD_PRELOAD)

Step 7: Exploitation

Once you have a viable vector:

  1. Document the root cause — what the vulnerability is and why it exists
  2. Document the safety mechanism bypass — what protection was circumvented
  3. Build the exploit with clear comments
  4. Execute with evidence capture:
    bash
    # Before
    id; whoami; date '+%Y-%m-%d %H:%M:%S'
    
    # Exploit execution (capture output)
    <exploit-command> 2>&1 | tee engagement/evidence/research/exploit-output.txt
    
    # After (verify impact)
    id; whoami; date '+%Y-%m-%d %H:%M:%S'
  5. Save all artifacts to engagement/evidence/research/

Troubleshooting

No source code available and binary is stripped:

  • Focus on dynamic analysis (strace/ltrace)
  • Look for environment variable influence (PATH, LD_PRELOAD)
  • Check if the binary calls external commands (strings | grep -E '/(bin|usr)')
  • Note if full RE tools (Ghidra/IDA) would help — return with recommendation

CVE found but no public PoC:

  • Read the advisory carefully for exploitation details
  • Check the patch/commit that fixed it — the diff often reveals the vuln
  • Write a minimal PoC from the advisory description

Multiple potential vectors found:

  • Prioritize by reliability: logic bugs > race conditions > memory corruption
  • Prioritize by impact: code execution > file write > file read > info disclosure
  • Pursue the highest-priority vector first; note alternatives in return summary

Exploit works locally but fails on target:

  • Check runtime version differences
  • Check file permissions and SELinux/AppArmor context
  • Check if the artifact runs in a different user context than expected
  • Verify network/filesystem differences between local test and target

Stall detection: If you spend 5+ tool-calling rounds on the same analysis track with no new information, switch tracks or return with what you have.

Câu hỏi thường gặp

Kỹ năng AI Unknown Vector Analysis làm được gì?

Phân tích ứng dụng, script và tệp nhị phân tùy chỉnh mà các kỹ năng kỹ thuật tiêu chuẩn không thể khai thác. Thực hiện rà soát mã nguồn, lập bản đồ bề mặt tấn công, nghiên cứu CVE và điều chỉnh PoC. Chuyển đến đây khi BẤT KỲ tác nhân kỹ thuật nào báo rằng các mẫu tiêu chuẩn không phù hợp, mục tiêu dùng ứng dụng tùy chỉnh/không rõ nguồn gốc hoặc không có kỹ năng kỹ thuật hiện có nào bao quát được phương thức tấn công. Cụm từ kích hoạt: "standard patterns don't match", "custom script", "unknown binary", "no matching technique", "unrecognized application". KHÔNG dùng cho các nhóm lỗ hổng đã bi...

Vì sao nên dùng Unknown Vector Analysis trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Unknown Vector Analysis là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Unknown Vector Analysis trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/blacklanternsecurity/red-run/tree/main/skills/research/unknown-vector-analysis. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Unknown Vector Analysis?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Unknown Vector Analysis với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Unknown Vector Analysis với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Unknown Vector Analysis có miễn phí không?

Có. Kỹ năng này được blacklanternsecurity phát hành trên GitHub theo giấy phép GPL-3.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇