Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

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

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

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
statiStrings — YARA 규칙 문자열 통계 계산기 및 악성코드 연구 도우미 | Kitploit
도구/GitHubGitHub/sh3llyr/statistrings
Static AnalysisMalware AnalysisThreat Intelligence
GitHubsh3llyr/statistrings

statiStrings

YARA 규칙 문자열 통계 계산기 및 악성코드 연구 도우미

저장소 보기
1445년 전아직 검토되지 않음

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

statiStrings

root@kitploit:~
      _        _   _ ____  _        _
  ___| |_ __ _| |_(_) ___|| |_ _ __(_)_ __   __ _ ___
 / __| __/ _` | __| \___ \| __| '__| | '_ \ / _` / __|
 \__ \ || (_| | |_| |___) | |_| |  | | | | | (_| \__ \
 |___/\__\__,_|\__|_|____/ \__|_|  |_|_| |_|\__, |___/
 		       			    |___/
 YARA Rule Strings Statistics Calculator
 Shelly Raban (Sh3llyR), February 2021, Version 0.1
목차
  1. 프로젝트 소개
    • 사용 기술
  2. 시작하기
    • 설치
  3. 사용법
  4. 연락처
  5. 감사의 말

프로젝트 소개

statiStrings는 YARA 규칙의 문자열 통계 계산기입니다.

악성코드 연구를 돕기 위한 목표:

  • 악성코드 샘플 내 공통 및 고유 문자열 찾기
  • 클린 파일 내 공통 문자열 찾기
  • 악성코드 샘플의 공통 특성을 자동으로 찾아 시간 절약

이 도구는 악성 및 클린 파일의 사용자 정의 데이터베이스를 기반으로, 더 나은 정밀한 YARA 규칙을 작성하여 악성코드 탐지 및 헌팅을 돕습니다.

주어진 YARA 규칙과 파일 디렉토리에 대해, 이 도구는 규칙의 각 문자열이 디렉토리 내 일치하는 파일에서 얼마나 자주 나타나는지를 반환합니다.

사용 기술

  • Python

시작하기

이 도구를 사용하려면 Python이 설치되어 있어야 합니다.

설치

yara-python 설치

root@kitploit:~
pip install yara

레포지토리 클론

root@kitploit:~
git clone https://github.com/Sh3llyR/statiStrings.git

사용법

root@kitploit:~
 usage: statiStrings.py [-h] [-y YARA_RULE] [-d TEST_DIR] [-t OUTPUT_TYPE]

 YARA Rule Strings Statistics Generator and Malware Research Helper

 optional arguments:
   -h, --help      show this help message and exit
   -y YARA_RULE    Path to the YARA Rule
   -d TEST_DIR     Path to the Directory of Files to be Scanned
   -t OUTPUT_TYPE  Output Type: s (sum - number of files in which each string
 				  from the YARA rule ocuured) / p (percentage - percent of
 				  files in which each string from the YARA rule ocuured).
 				  Default is s

사용 예시

악성 배치 스크립트의 공통 문자열 연구: 먼저 악성 스크립트에서 발견된 여러 명령어를 포함하는 YARA 규칙을 작성했습니다. 조건은 "any of them" – 매우 일반적이었습니다. 그런 다음, 작성한 규칙을 사용하여 악성 스크립트 디렉토리에 대해 이 도구를 실행했습니다 (아래 예시 참조). 마지막으로, 클린 스크립트가 있는 디렉토리에 대해 실행했습니다. 클린 스크립트와 악성 스크립트의 결과를 비교한 후, 다음을 수행할 수 있었습니다:

  1. YARA 규칙의 문자열을 의심스러운 것($s_...)과 잡음이 있는 것($n_...)으로 그룹화합니다 (예: tskill은 $s_, echo는 $n_).
  2. 악성 샘플은 탐지하지만 클린 샘플은 탐지하지 않는 규칙 조건을 생성하여 오탐을 최소화합니다.
  • python statiStrings.py -y .\batch_commands.yar -d .\batch_samples -t s
  • 결과:
    root@kitploit:~
    {'$s_ren': 1, '$n_set': 8, '$s_mem': 1, '$s_reg_add': 8, '$s_taskkill': 4, '$n_exit': 9, '$s_maybe_block_sites_hosts_file': 1, '$s_move': 2, '$s_attrib': 6, '$n_copy': 6, '$n_start': 10, '$n_type': 7, '$n_echo': 26, '$n_reg': 11, '$s_aes': 1, '$s_cscript': 1, '$s_change_mouse_settings': 1, '$n_net': 3, '$n_find': 6, '$s_infinite_loop': 2, '$s_shutdown': 9, '$n_del': 6, '$n_goto': 12, '$s_generic_bat_maybe_copy_itself': 5, '$n_ipconfig': 2, '$n_maybe_time_change': 5, '$n_system': 2, '$s_tskill': 3, '$s_cpu_damage': 1, '$s_erase': 3, '$s_make_random_folders': 1, '$s_sleep': 4, '$n_bat_maybe_copy_itself': 9}
    Number of files scanned: 157
    
  • python statiStrings.py -y .\batch_commands.yar -d .\batch_samples -t p
  • 결과:
    root@kitploit:~
    {'$s_maybe_block_sites_hosts_file': '0.64%', '$s_sleep': '2.55%', '$s_shutdown': '5.73%', '$s_attrib': '3.82%', '$s_change_mouse_settings': '0.64%', '$n_maybe_time_change': '3.18%', '$s_erase': '1.91%', '$s_move': '1.27%', '$n_net': '1.91%', '$s_aes': '0.64%', '$n_reg': '7.01%', '$n_system': '1.27%', '$n_set': '5.1%', '$s_cscript': '0.64%', '$n_find': '3.82%', '$s_generic_bat_maybe_copy_itself': '3.18%', '$s_cpu_damage': '0.64%', '$n_goto': '7.64%', '$s_tskill': '1.91%', '$s_ren': '0.64%', '$s_mem': '0.64%', '$n_type': '4.46%', '$s_taskkill': '2.55%', '$n_exit': '5.73%', '$n_echo': '16.56%', '$s_infinite_loop': '1.27%', '$n_start': '6.37%', '$s_make_random_folders': '0.64%', '$n_bat_maybe_copy_itself': '5.73%', '$n_ipconfig': '1.27%', '$s_reg_add': '5.1%', '$n_del': '3.82%', '$n_copy': '3.82%'}
    Number of files scanned: 157
    

연락처

LinkedIn

프로젝트 링크: https://github.com/Sh3llyR/statiStrings

감사의 말

  • Img Shields
도구 다운로드