cheiron-add-procedure
Cheiron에서 프로시저를 생성합니다. 대표 이미지를 함께 올릴 수 있습니다.
cheiron-add-procedure [profile=값] procedure-information-json=값
- profile=값
- 선택. Cheiron 접속 프로파일 식별자
- procedure-information-json=값
- 필수. 프로시저 정의의 JSON 객체입니다(요청의 procedure_information 부분). 생성할 때 필수 필드: proc_name, is_base_proc, tech_id(기법 idx), platforms, environment, main, cleanup. 그 밖의 필드: proc_id, tactics(전술 idx 배열), description, dependencies, is_cleanup, is_danger, danger_desc, result, is_elevated, role(1 Attacker, 2 Victim), main_timeout(초, 기본 300), visibility(1 공개, 2 비공개), detection, mitigation, reference. 수정할 때는 모든 필드가 선택입니다. 예:
{"proc_name": "Owner Discovery", "is_base_proc": false, "tactics": [7], "tech_id": 23, "platforms": {"windows": true, "linux": false, "mac": false, "detail": ["windows"]}, "environment": {}, "main": {"type": "cmd", "command": "whoami"}, "cleanup": {}}
출력 필드
| 필드 | 타입 | 이름 | 설명 |
|---|---|---|---|
| profile | 문자열 | 접속 프로파일 | Cheiron 접속 프로파일 식별자 |
| procedure_idx | 32비트 정수 | 프로시저 IDX | 예: 382982 |
| proc_id | 문자열 | 프로시저 ID | 예: 00000000-0000-0000-0000-0000000000a2 |
| proc_name | 문자열 | 프로시저 이름 | 예: harness-setup |
| result_code | 32비트 정수 | 결과 코드 | 예: 200 |
| result_msg | 문자열 | 결과 메시지 | 예: OK |