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

# 설정 및 Profile

> XDR/NDR POC를 위한 Target Scope, Execution Mode, DSP Coverage Profile을 설정합니다.

# 설정 및 Profile

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`만 실제 승인된 고객/Lab CIDR로 설정하세요. Activity를 Target Network 내부의 승인된 Host에서 발생시켜야 할 때만 Webshell Mode로 이동합니다.

## Operational Profile

현재 v1.4.0 Runtime은 두 Profile을 지원합니다.

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

<Note>
  `high`는 대상별 Intensity를 높이는 것이 아니라 **Coverage를 넓히는 Profile**입니다. 다만 더 많은 Host가 참여하므로 전체 Aggregate Traffic은 증가할 수 있습니다.
</Note>

### 이전 Profile 이름

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

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

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

## 현재 Scenario 순서

```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
```

Inactive Plugin은 Runtime에서 제외됩니다. Webshell Mode에서는 사용 가능한 경우 `host_behavior_check`가 첫 Host Activity 단계로 포함됩니다.

## 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
```

## 특정 Scenario 직접 선택

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

`--scenarios`를 지정하면 명시한 Scenario List가 우선합니다. 동시에 `--profile`을 지정하면 해당 Scenario에 Profile의 Volume 및 Host Limit이 적용됩니다.

<Card title="Scenario Reference" icon="radar" href="/ko/scenarios">
  각 Operational Scenario가 어떤 Activity를 생성하는지 확인합니다.
</Card>
