HackTricks 공격 보안 위키에 대한 오프라인 전체 텍스트 검색 및 섹션 단위 검색 기능을 AI agent에게 제공합니다.
다른 이름 zebbern/hacktricks-mcp, @zebbern/hacktricks-mcp
- 스타
- 4
- Tools
- 3
- 다운로드, 30일
- —
- 최신 버전
- 0.1.5
- 마지막 커밋
- 2026년 11월 16일
- 라이선스
- —
HackTricks MCP란?
HackTricks 공격 보안 위키에 대한 오프라인 전체 텍스트 검색 및 섹션 단위 검색 기능을 AI agent에게 제공합니다. 3개 도구를 제공합니다. 예: hacktricks_search, hacktricks_get_page, hacktricks_get_toc.
프로젝트 README에서 생성된 요약
HackTricks MCP server 정보
이 server는 AI agent가 HackTricks 공격 보안 위키에 대해 오프라인 전체 텍스트 검색 및 섹션 단위 검색을 수행할 수 있도록 지원합니다. 보안 연구원과 침투 테스트 전문가는 Claude Desktop, Cursor, Kimi와 같은 클라이언트나 Claude Code, Codex CLI와 같은 CLI를 통해 이를 사용할 수 있습니다. Node.js 22.13 이상 환경에서 로컬로 작동하며, 1,000개 이상의 페이지가 포함된 미리 구축된 SQLite FTS5 검색 인덱스를 포함하고 있어 쿼리 시 네트워크 접속이 필요하지 않습니다.
사용자는 스니펫과 함께 순위가 지정된 결과를 제공하는 hacktricks_search, 특정 섹션이나 코드 블록을 읽는 hacktricks_get_page, 카테고리 트리를 확인하는 hacktricks_get_toc 등의 특정 도구를 통해 위키와 상호작용합니다. 인덱스는 3일마다 상위 저장소와 재동기화하는 GitHub Action을 통해 최신 상태를 유지합니다. 내장된 node:sqlite 모듈을 사용하므로 네이티브 의존성을 피할 수 있으며, 별도의 clone이나 ripgrep 설치가 필요하지 않습니다.
활용 사례
- 1특정 공격 명령 검색agent에게 kerberoast 공격에 필요한 정확한 명령어를 찾아 표시하도록 요청합니다.
- 2권한 상승 경로 조사lxd 그룹의 구성원일 때 권한을 상승시키는 방법에 대한 지침을 요청합니다.
- 3위키 카테고리 탐색웹 침투 테스트 페이지 내에서 SSRF와 관련된 특정 섹션을 찾습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
HackTricks MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 HackTricks MCP 설치
$ claude mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcpCursor에 HackTricks MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"hacktricks-mcp": {
"command": "npx",
"args": [
"-y",
"@zebbern/hacktricks-mcp"
]
}
}
}VS Code에 HackTricks MCP 설치
.vscode/mcp.json
{
"servers": {
"hacktricks-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zebbern/hacktricks-mcp"
]
}
}
}VS Code CLI에 HackTricks MCP 설치
$ code --add-mcp '{"name":"hacktricks-mcp","type":"stdio","command":"npx","args":["-y","@zebbern/hacktricks-mcp"]}'Claude Desktop에 HackTricks MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"hacktricks-mcp": {
"command": "npx",
"args": [
"-y",
"@zebbern/hacktricks-mcp"
]
}
}
}Codex에 HackTricks MCP 설치
$ codex mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcpCodex config.toml에 HackTricks MCP 설치
~/.codex/config.toml
[mcp_servers.hacktricks-mcp] command = "npx" args = ["-y", "@zebbern/hacktricks-mcp"]
Gemini CLI에 HackTricks MCP 설치
$ gemini mcp add -s user hacktricks-mcp npx -- -y @zebbern/hacktricks-mcpGemini settings.json에 HackTricks MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"hacktricks-mcp": {
"command": "npx",
"args": [
"-y",
"@zebbern/hacktricks-mcp"
]
}
}
}HackTricks MCP 도구 3
README에서 감지됨hacktricks_searchhacktricks_get_pagehacktricks_get_toc
| hacktricks_search | — | |
| hacktricks_get_page | — | |
| hacktricks_get_toc | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능zebbern/hacktricks-mcp is public and reachablegithub.com/zebbern/hacktricks-mcp ↗통과
- 패키지가 이 저장소를 소스로 명시@zebbern/hacktricks-mcp names zebbern/hacktricks-mcp as sourcenpmjs.com/package/@zebbern/hacktricks-mcp ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for @zebbern/hacktricks-mcpnpmjs.com/package/@zebbern/hacktricks-mcp/v/0.1.5#provenance ↗통과
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-13github.com/zebbern/hacktricks-mcp ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @zebbern/hacktricks-mcp통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음105 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음3 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기hacktricks-mcp
MCP server that gives AI agents fast, offline full-text search and section-level retrieval over the HackTricks offensive-security wiki.
Unlike grep-based alternatives, this server ships with a pre-built SQLite FTS5 search index (1,000+ pages) inside the package. No install-time clone, no ripgrep dependency, no network access at query time. A GitHub Action re-syncs the index with upstream every 3 days and commits it back to this repo.
Quick start
Requirements: Node.js 22.13 or newer (uses the built-in node:sqlite, zero native dependencies).
Claude Code:
claude mcp add hacktricks -- npx -y @zebbern/hacktricks-mcp
Codex CLI:
codex mcp add hacktricks -- npx -y @zebbern/hacktricks-mcp
Any MCP client (Claude Desktop, Cursor, Kimi, etc.), config JSON:
{
"mcpServers": {
"hacktricks": {
"command": "npx",
"args": ["-y", "@zebbern/hacktricks-mcp"]
}
}
}
As a plugin (bundles the agent skill that teaches efficient usage): this repo is a valid plugin for Claude Code (.claude-plugin/), Codex (.codex-plugin/) and Kimi (kimi-plugin/). Add it from your client's plugin marketplace flow pointing at zebbern/hacktricks-mcp, or for Kimi Work use this plugin link.
Then ask things like:
- "Search HackTricks for kerberoast and give me the attack commands"
- "How do I escalate privileges from the lxd group?"
- "Show me the SSRF section of the pentesting-web pages"
Tools at a glance
| Tool | What it does |
|---|---|
hacktricks_search |
Ranked full-text search with snippets, category filter and abbreviation handling (privesc, sqli, rce, ...) |
hacktricks_get_page |
Read a page, a single section, or just its code blocks |
hacktricks_get_toc |
The wiki category tree, so agents can see where topics live |
All tools are strictly read-only. Full reference: docs/tools.md.
Documentation
- docs/tools.md: complete tool reference with parameters and examples
- docs/architecture.md: how the index and the 3-day sync work
- docs/development.md: local setup, tests, releasing
- docs/agents.md: agent skill, MCP registry and plugin packaging
Security and legal
- The server executes nothing from the wiki; it is a read-only search interface. All queries are parameterized, and user input is escaped before query construction.
- HackTricks content is offensive-security reference material. Use it only on systems you are authorized to test.
- Content belongs to HackTricks / Carlos Polop and contributors; this repo contains derived index data plus original server code (MIT).
Credits
- HackTricks by Carlos Polop and contributors
- Model Context Protocol SDK
HackTricks MCP 질문
HackTricks MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add hacktricks-mcp -- npx -y @zebbern/hacktricks-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
HackTricks MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
HackTricks MCP는 어떤 도구를 제공하나요?
3개 도구를 제공합니다. 예: hacktricks_search, hacktricks_get_page, hacktricks_get_toc.
검색 시 인터넷 연결이 필요한가요?
아니요, 이 server는 미리 구축된 SQLite FTS5 검색 인덱스를 사용하므로 쿼리 시 네트워크 접속이 필요하지 않습니다.
HackTricks 위키 콘텐츠는 얼마나 자주 업데이트되나요?
GitHub Action을 통해 3일마다 상위 위키와 인덱스를 자동으로 재동기화합니다.
server가 HackTricks 위키를 수정할 수 있나요?
아니요, server가 제공하는 모든 도구는 읽기 전용입니다.
이 server를 실행하기 위한 시스템 요구 사항은 무엇인가요?
Node.js 버전 22.13 이상이 설치되어 있어야 합니다.