# Success Verification Method

## 1. Service Status Verification

**Expected Outcome**: Confirm malware detection service is enabled.

**Verification Command**:
```bash
bash scripts/malware_scan.sh check-service --region cn-shanghai
```

**Success Indicator**: Output JSON contains `"service_available": true` with either `"prepay_enabled": true` or `"postpay_enabled": true`.

## 2. Single File Scan Verification

**Expected Outcome**: File scanned and result returned with score.

**Verification Command**:
```bash
bash scripts/malware_scan.sh scan /path/to/test-file --region cn-shanghai
```

**Success Indicator**: Output contains detection result JSON with `score`, `risk_level`, and `status` fields. A clean test file should return `"risk_level": "Safe"` with `score <= 60`.

## 3. Directory Listing Verification

**Expected Outcome**: Directory files enumerated with count and total size.

**Verification Command**:
```bash
bash scripts/malware_scan.sh list-dir /path/to/directory
```

**Success Indicator**: Output JSON shows `file_count` and `total_size_mb`.

## 4. Directory Scan Verification

**Expected Outcome**: All files in directory scanned with individual results.

**Verification Command**:
```bash
bash scripts/malware_scan.sh scan-dir /path/to/directory --region cn-shanghai
```

**Success Indicator**: Output contains array of detection results, one per file.
