> ## Documentation Index
> Fetch the complete documentation index at: https://dsp.isoc.ooo/llms.txt
> Use this file to discover all available pages before exploring further.

# 설정 및 프로필

> XDR/NDR POC의 대상 범위, 실행 방식, 실행 범위 프로필을 설정합니다.

# 설정 및 프로필

DSP Operator Menu는 설정을 다음 위치에 저장합니다.

```text theme={null}
~/.dsp/config.env
```

일반적인 공개 설치 예시는 다음과 같습니다.

```bash theme={null}
DSP_REPO_DIR=/home/user/xdr-poc-script
TARGET_NET=10.10.10.0/24
EXECUTION_MODE=local
PROFILE=normal
WEBSHELL_FAMILY=jsp
WEBSHELL_URL=http://10.10.10.50:8080/shell.jsp
REMOTE_WORK_DIR=/tmp/dsp
```

## 핵심 설정

| 설정 | 지원 값 | 설명 |
| - | - | - |
| `TARGET_NET` | CIDR | 승인된 Test Scope. 예시는 실제 허가된 Network로 교체 |
| `EXECUTION_MODE` | `local`, `webshell` | Scenario Activity가 시작되는 위치 |
| `PROFILE` | `normal`, `high` | Target Coverage 제어 |
| `WEBSHELL_FAMILY` | `jsp`, `php`, `aspx` | Webshell Mode에서만 사용 |
| `WEBSHELL_URL` | HTTP(S) URL | 승인된 Shell Endpoint |
| `REMOTE_WORK_DIR` | Remote Writable Path | Linux 검증 기본값: `/tmp/dsp` |

## 권장 첫 설정

처음에는 다음처럼 단순하게 시작하는 것이 좋습니다.

```text theme={null}
EXECUTION_MODE=local
PROFILE=normal
```

`TARGET_NET`만 실제 승인된 고객/랩 CIDR로 설정하세요. 활동을 대상 네트워크 내부의 승인된 호스트에서 발생시켜야 할 때만 Webshell 모드를 사용합니다.

## Operational Profile

현재 v1.4.0은 두 프로필을 지원합니다.

| Profile | Scenario Set | Target Coverage | 대상별 Volume |
| - | - | - | - |
| `normal` | 활성 시나리오 전체 | 대표 대상, 일반적으로 최대 2개 | Standard |
| `high` | 동일한 시나리오 구성 | Guardrail 범위에서 발견된 전체 대상으로 확장 | **normal과 동일** |

> [!NOTE]
>
> `high`는 대상별 실행 강도를 높이는 것이 아니라 **더 많은 대상을 포함하는 프로필**입니다. 다만 더 많은 호스트가 참여하므로 전체 트래픽 양은 증가할 수 있습니다.

### 이전 프로필 이름

호환성을 위해 Runtime은 이전 이름을 다음처럼 처리합니다.

| 이전 값 | 현재 동작 |
| - | - |
| `low` | `normal`로 매핑 |
| `balanced` | `normal`로 매핑 |
| `burst` | `high`로 매핑 |

새로운 설정에서는 `normal`과 `high`만 사용하세요.

## 현재 시나리오 순서

```text theme={null}
host_behavior_check
port_sweep
http_followup
sql_injection
ssh_failure
ldap_enumeration
smb_login_failure
kerberos_failure
dga
rare_protocol_activity
dns_tunnel
```

비활성 Plugin은 실행 대상에서 제외됩니다. Webshell Mode에서는 사용 가능한 경우 `host_behavior_check`가 첫 호스트 활동 단계로 포함됩니다.

## Large Target Guardrail

`/24`보다 큰 Network는 다음 두 옵션을 모두 지정해야 합니다.

```bash theme={null}
dsp run \
  --target-net 10.0.0.0/16 \
  --profile high \
  --allow-large-target \
  --max-hosts 10
```

## 특정 시나리오 직접 선택

```bash theme={null}
dsp run \
  --scenarios dns_tunnel,http_followup \
  --profile normal \
  --target-net 10.10.10.0/24
```

`--scenarios`를 지정하면 명시한 시나리오 목록가 우선합니다. 동시에 `--profile`을 지정하면 해당 시나리오에 프로필의 실행량과 호스트 수 제한이 적용됩니다.

> [card] [Scenario Reference](https://dsp.isoc.ooo/ko/scenarios.md)
>
> 각 시나리오가 어떤 활동을 생성하는지 확인합니다.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.