Skip to content

refactor(main): restructure main flow and command handler with daemon features Also includes scheduled scanning, restore, and malware hash DB features for ManLab system.#46

Merged
JIWOO1113 merged 26 commits intodevelopfrom
feature/SIG
Jul 3, 2025

Conversation

@JIWOO1113
Copy link
Copy Markdown
Contributor

@JIWOO1113 JIWOO1113 commented Jul 3, 2025

📌 관련 이슈

✨ 작업 내용

  • 커맨드 핸들러 및 main 개선
  • 데몬 PID 파일 기반 관리 변경
  • 악성코드 해시 DB추가
  • 검역소에서 복구 기능 추가
  • 예약검사 기능 추가
  • 빌드와 실행 분리

🚨 중요 변경 사항 (⚠️ 필요시 체크)

  • main에서 잘못된 커맨드 입력 시 나오는 알림 수정
  • Makefile 수정
  • 빌드 후 ManLab init를 수동으로 실행시키도록 수정
  • PC 재부팅 시 데몬이 작동하도록 수정
  • 실시간 검사 on/off를 설정파일로 관리하고 ManLab reload로 적용하도록 수정
  • 악성코드 해시(텍스트 파일) 추가 및 초기화 시 DB에 해당 데이터 삽입하도록 수정
  • Daemon 클래스 running 변수를 각 클래스 별로 static으로 정의
  • utils 내에 trim 함수 추가
  • 커맨드핸들러 --enable, --disable 삭제(reload로 통합)
  • 복구 기능 클래스 추가
  • 예약검사 기능 데몬 추가

🔍 To Reviews

  • main.cpp : 잘못된 명령어 알림 수정
  • CommandHandler.cpp : init, reload 로직
  • DaemonUtils.cpp : 데몬 중복 실행 방지를 위한 PID파일 관리
  • DBManager.cpp : 초기화 시 데이터 삽입 코드 추가
  • ScheduledScanDaemon.cpp : 예약검사 기능
  • RestoreManager.cpp : 복구 기능
  • utils 디렉토리 : trim 함수 추가

✅ 체크리스트

  • [V] PR의 제목은 팀 내 규칙을 준수하여 알맞게 작성하였는가?
  • [V] Merge 하는 브랜치가 올바른가? (main 브랜치에 실수로 PR 생성 금지)
  • [V] 팀의 코딩 컨벤션을 준수하는가?
  • [V] PR과 관련 없는 변경 사항이 들어가지는 않았는가?
  • [V] 내 코드에 대한 자기 검토가 충분히 되었는가?
  • [V] Reviewers, Assignees, Labels, Project, Milestone은 적절하게 선택하였는가?
  • [V] 관련된 issue를 닫아야 하는지 점검해보고 적용하였는가?

🚀 추가 코멘트

JIWOO1113 and others added 26 commits June 11, 2025 02:16
Implements ScanMalware class for malware scanning.
Initial structure defined in header and source files.
Implement the QuarantineManager class to isolate malware files.

Initial structure defined in header and source files.
@JIWOO1113 JIWOO1113 requested review from jaeman1 and minyoung13 July 3, 2025 05:34
@JIWOO1113 JIWOO1113 self-assigned this Jul 3, 2025
@JIWOO1113 JIWOO1113 added the 시그니처 분석 악성코드 탐지 팀 시그니처 분석 악성코드 탐지 팀 label Jul 3, 2025
@JIWOO1113 JIWOO1113 moved this to 검토 중 in 깃허브 티켓 관리 Jul 3, 2025
@JIWOO1113 JIWOO1113 changed the base branch from main to develop July 3, 2025 16:31
@JIWOO1113 JIWOO1113 merged commit 2d1c657 into develop Jul 3, 2025
jaeman1 pushed a commit that referenced this pull request Jul 23, 2025
refactor(main): restructure main flow and command handler with daemon features Also includes scheduled scanning, restore, and malware hash DB features for ManLab system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

시그니처 분석 악성코드 탐지 팀 시그니처 분석 악성코드 탐지 팀

Projects

Status: 검토 중

Development

Successfully merging this pull request may close these issues.

악성코드 예약검사 구현 데몬 PID파일 로직 구현

2 participants