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

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

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

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
secimport — Python용 라이브러리 수준 eBPF 샌드박스(Linux 및 macOS): 모듈별 syscall 수준 제어. | Kitploit
도구/GitHubGitHub/avilum/secimport
Defensive ToolsContainer SecurityDynamic Analysis (Sandboxing)Scripting & AutomationConfiguration AuditingSecurity VirtualizationMalware AnalysisBinary AnalysisSupply Chain Security
GitHubavilum/secimport

secimport

24518497개월 전Kitploit 검토 완료

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

Python용 라이브러리 수준 eBPF 샌드박스(Linux 및 macOS): 모듈별 syscall 수준 제어.

저장소 보기웹사이트

secimport

macOS Linux

Upload Python Package

Python 애플리케이션을 위한 모듈 수준 샌드박싱

secimport는 Python 모듈별로 시스템 콜 제한을 적용하는 eBPF 기반 보안 툴킷으로, 애플리케이션의 보안 프로필을 세밀하게 제어할 수 있습니다. Linux의 seccomp-bpf와 유사하지만, Python 모듈 수준에서 동작한다고 생각하면 됩니다.

Star History Chart

주요 기능

  • 모듈 수준 보안: Python 모듈별로 시스템 콜 제한을 정의하고 적용
  • 자동화된 프로파일링: 애플리케이션을 추적하여 맞춤형 보안 프로필 생성
  • 다양한 적용 모드: 정책 위반 시 로그 기록, 중지 또는 프로세스 종료
  • 프로덕션 준비 완료: eBPF 덕분에 성능 영향이 거의 없음
  • 공급망 보호: 취약한 의존성으로 인한 위험 완화

빠른 시작

Docker 사용 (권장)

git clone https://github.com/avilum/secimport.git
cd secimport/docker
./build.sh && ./run.sh

명령줄:

secimport --help

 Usage: python -m secimport.cli [OPTIONS] COMMAND [ARGS]...

 secimport is a comprehensive toolkit designed to enable the tracing, construction, and execution of secure Python runtimes. It leverages USDT probes and eBPF/DTrace technologies to enhance overall security measures.
 WORKFLOW:     1. secimport trace / secimport shell     2. secimport build     3. secimport run
 QUICKSTART:     $ secimport interactive
 For more details, please see https://github.com/avilum/secimport/wiki/Command-Line-Usage

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                                                                                                                                                                    │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.                                                                                                                                             │
│ --help                        Show this message and exit.                                                                                                                                                                                                  │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ trace         Trace a Python process using an entrypoint or interactive shell.                                                                                                                                                                             │
│ shell         Alias for 'trace'.                                                                                                                                                                                                                           │
│ trace-pid     Trace a running process by PID.                                                                                                                                                                                                              │
│ build         Build a sandbox profile from a trace log.                                                                                                                                                                                                    │
│ run           Run a Python process inside the sandbox.                                                                                                                                                                                                     │
│ interactive   Run secimport in interactive mode.                                                                                                                                                                                                           │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

첫 번째 샌드박스 만들기

secimport interactive

# In the Python shell that opens:
>>> secimport trace   # Start tracing
>>> import requests   # Perform actions you want to profile
>>> # Press CTRL+D to stop tracing

>>> secimport build   # Build sandbox from trace
>>> secimport run     # Run with enforcement

고급 사용법

명령줄 옵션

secimport trace              # Trace a new Python process
secimport trace_pid <PID>    # Trace an existing process
secimport build              # Build sandbox from trace
secimport run [options]      # Run with enforcement

적용 모드

# Stop on violation
secimport run --stop_on_violation=true

# Kill on violation
secimport run --kill_on_violation=true

Python API

import secimport

# Replace standard import with secure import
requests = secimport.secure_import('requests', allowed_syscalls=['open', 'read', ...])

수동 설치

  1. USDT 프로브가 포함된 Python을 설치합니다:

    # Configure Python with --enable-dtrace
    # See detailed instructions in our wiki
    
  2. 지원되는 백엔드(eBPF 또는 DTrace)를 설치하십시오.

    # Ubuntu/Debian
    apt-get install bpftrace
    
    # For other platforms, see our Installation wiki
    
  3. secimport 설치

    pip install secimport
    

nsjail을 사용한 seccomp-bpf 지원

secimport가 구축하는 샌드박스 외에도,
secimport build 명령은 추적된 코드에 대한 seccomp 프로필과 함께 nsjail 샌드박스를 생성합니다.
nsjail은 리눅스에서 seccomp를 사용한 네임스페이스 샌드박싱을 활성화합니다
secimport는 실행 가능한 bash 스크립트로 nsjail과 함께 사용할 seccomp 프로필을 자동으로 생성합니다. 이는 또 다른 방어 계층으로서 전체 파이썬 프로세스의 시스템 호출을 제한하는 데 사용할 수 있습니다.

문서

  • 설치 가이드
  • 명령줄 사용법
  • API 레퍼런스
  • 샌드박스 예제

더 알아보기

기술 자료

  • https://www.oligo.security/
  • 발표: PyCon에서의 secimport
  • 발표: BSides에서의 secimport
  • 블로그 글:
    • secimport + DTrace
    • secimport + eBPF + PyTorch
    • secimport + eBPF + FastAPI

기여

도구 다운로드