Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
magika — 빠르고 정확한 AI 기반 파일 콘텐츠 유형 탐지 | Kitploit
도구/GitHubGitHub/google/magika
General Purpose UtilitiesStatic AnalysisCode AnalysisForensicsMalware AnalysisMachine Learning
GitHubgoogle/magika

magika

빠르고 정확한 AI 기반 파일 콘텐츠 유형 탐지

저장소 보기
17.9k1.1k313시간 49분 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
웹사이트
공유

Magika

image NPM Version image image Go Version

OpenSSF Best Practices CodeQL Python Coverage Actions status PyPI Monthly Downloads PyPI Downloads

Magika는 최근 딥러닝의 발전을 활용하여 정확한 탐지를 제공하는 AI 기반의 새로운 파일 유형 탐지 도구입니다. 내부적으로 Magika는 약 몇 MB에 불과한 사용자 정의된 고도로 최적화된 모델을 사용하며, 단일 CPU에서 실행되더라도 밀리초 단위로 정확한 파일 식별을 가능하게 합니다. Magika는 200개 이상의 콘텐츠 유형(바이너리 및 텍스트 파일 형식 모두 포함)에 걸친 약 1억 개의 샘플 데이터셋으로 학습 및 평가되었으며, 테스트 세트에서 평균 약 99%의 정확도를 달성합니다.

다음은 Magika 명령줄 출력의 예시입니다:

Magika는 Gmail, Drive, 세이프 브라우징 파일을 적절한 보안 및 콘텐츠 정책 스캐너로 라우팅하여 Google 사용자의 안전을 개선하는 데 대규모로 사용되며, 매주 수천억 개의 샘플을 처리합니다. Magika는 또한 VirusTotal(예시) 및 abuse.ch(예시)와 통합되었습니다.

더 많은 맥락을 위해 Google OSS 블로그의 초기 발표 게시물을 읽어보시고, Magika 웹사이트를 참조하시며, IEEE/ACM International Conference on Software Engineering (ICSE) 2025에서 발표된 연구 논문에서 더 자세히 읽어보실 수 있습니다.

아무것도 설치하지 않고 브라우저에서 로컬로 실행되는 웹 데모를 사용하여 Magika를 체험해볼 수 있습니다!

주요 특징

  • Rust로 작성된 명령줄 도구, Python API, 그리고 Rust, JavaScript/TypeScript(실험적인 npm 패키지 포함, 이는 웹 데모를 구동합니다), GoLang(작업 중)을 위한 추가 바인딩으로 제공됩니다.
  • 200개 이상의 콘텐츠 유형에 걸친 약 1억 개의 파일 데이터셋으로 학습 및 평가되었습니다.
  • 테스트 세트에서 Magika는 약 99%의 평균 정밀도와 재현율을 달성하여 기존 접근 방식을 능가합니다 -- 특히 텍스트 콘텐츠 유형에서 두드러집니다.
  • 모델이 로드된 후(일회성 오버헤드), 추론 시간은 단일 CPU에서 실행되더라도 파일당 약 5ms입니다.
  • 수천 개의 파일을 동시에 Magika로 처리할 수 있습니다. 디렉터리를 재귀적으로 스캔하려면 -r을 사용할 수도 있습니다.
  • 파일 크기와 무관하게 거의 일정한 추론 시간; Magika는 파일 콘텐츠의 제한된 하위 집합만 사용합니다.
  • Magika는 콘텐츠 유형별 임계값 시스템을 사용하여 모델의 예측을 "신뢰"할지, 아니면 "일반 텍스트 문서" 또는 "알 수 없는 바이너리 데이터"와 같은 일반 레이블을 반환할지 결정합니다.
  • 오류 허용 범위는 high-confidence, medium-confidence, best-guess와 같은 다양한 예측 모드를 통해 제어할 수 있습니다.
  • 클라이언트와 바인딩은 이미 오픈 소스이며, 더 많은 것이 곧 제공될 예정입니다!

목차

  1. 시작하기
    1. 설치
    2. 빠른 시작
  2. 문서
  3. 보안 취약점
  4. 라이선스
  5. 면책 조항

시작하기

설치

명령줄 도구

Magika는 Rust로 작성된 CLI를 제공하며, 여러 가지 방법으로 설치할 수 있습니다.

magika Python 패키지를 통해:

pipx install magika

brew를 통해 (macOS / Linux)

brew install magika

설치 스크립트를 통해:

curl -LsSf https://securityresearch.google/magika/install.sh | sh

또는:

powershell -ExecutionPolicy Bypass -c "irm https://securityresearch.google/magika/install.ps1 | iex"

magika-cli Rust 패키지를 통해:

cargo install --locked magika-cli

Python 패키지

pip install magika

JavaScript 패키지

npm install magika

빠른 시작

시작하는 데 도움이 되는 몇 가지 빠른 예시를 여기에서 확인할 수 있습니다.

Magika의 내부 작동 방식에 대해 알아보려면 Magika 웹사이트의 핵심 개념 섹션을 참조하세요.

명령줄 도구 예시

% cd tests_data/basic && magika -r * | head
asm/code.asm: Assembly (code)
batch/simple.bat: DOS batch file (code)
c/code.c: C source (code)
css/code.css: CSS source (code)
csv/magika_test.csv: CSV document (code)
dockerfile/Dockerfile: Dockerfile (code)
docx/doc.docx: Microsoft Word 2007+ document (document)
docx/magika_test.docx: Microsoft Word 2007+ document (document)
eml/sample.eml: RFC 822 mail (text)
empty/empty_file: Empty file (inode)
% magika ./tests_data/basic/python/code.py --json
[
  {
    "path": "./tests_data/basic/python/code.py",
    "result": {
      "status": "ok",
      "value": {
        "dl": {
          "description": "Python source",
          "extensions": [
            "py",
            "pyi"
          ],
          "group": "code",
          "is_text": true,
          "label": "python",
          "mime_type": "text/x-python"
        },
        "output": {
          "description": "Python source",
          "extensions": [
            "py",
            "pyi"
          ],
          "group": "code",
          "is_text": true,
          "label": "python",
          "mime_type": "text/x-python"
        },
        "score": 0.996999979019165
      }
    }
  }
]
% cat tests_data/basic/ini/doc.ini | magika -
-: INI configuration file (text)
% magika --help
Determines file content types using AI

Usage: magika [OPTIONS] [PATH]...

Arguments:
  [PATH]...
          List of paths to the files to analyze.

          Use a dash (-) to read from standard input (can only be used once).

Options:
  -r, --recursive
          Identifies files within directories instead of identifying the directory itself

      --no-dereference
          Identifies symbolic links as is instead of identifying their content by following them

      --colors
          Prints with colors regardless of terminal support

      --no-colors
          Prints without colors regardless of terminal support

  -s, --output-score
          Prints the prediction score in addition to the content type

  -i, --mime-type
          Prints the MIME type instead of the content type description

  -l, --label
          Prints a simple label instead of the content type description

      --json
          Prints in JSON format

      --jsonl
          Prints in JSONL format

      --format <CUSTOM>
          Prints using a custom format (use --help for details).

          The following placeholders are supported:

            %p  The file path
            %l  The unique label identifying the content type
            %d  The description of the content type
            %g  The group of the content type
            %m  The MIME type of the content type
            %e  Possible file extensions for the content type
            %s  The score of the content type for the file
            %S  The score of the content type for the file in percent
            %b  The model output if overruled (empty otherwise)
            %%  A literal %

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

CLI에 대한 더 많은 예시와 문서는 https://crates.io/crates/magika-cli를 참조하세요.

Python 예시

도구 다운로드