VPC 환경에서 이용 가능합니다.
탐지 대상으로 등록한 리소스 중 웹쉘 의심 행위가 탐지된 내역을 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | /detections |
요청 헤더
Webshell Behavior Detector API에서 공통으로 사용하는 헤더에 대한 정보는 Webshell Behavior Detector 공통 헤더를 참조해 주십시오.
요청 쿼리 파라미터
파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
pageIndex |
Integer | Optional | 페이지 번호 |
pageSize |
Integer | Optional | 페이지 출력 개수 |
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://wbd.apigw.gov-ntruss.com/api/v1/detections?pageIndex=1&pageSize=3' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'X-NCP-USE_PLATFORM_TYPE: VPC'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
success |
Boolean | - | 요청 처리 여부 |
code |
Integer | - | 응답 코드 |
message |
String | - | 응답 메시지 |
result |
Object | - | 응답 결과 |
content |
Array | - | 웹쉘 행위 탐지 내역 목록 |
totalCount |
Integer | - | 응답 결과 개수 |
pageSize |
Integer | - | 페이지 출력 개수 |
pageIndex |
Integer | - | 페이지 번호 |
totalPages |
Integer | - | 총 페이지 개수 |
content
content
에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
detectionId |
String | - | 웹쉘 행위 탐지 내역 ID |
instanceNo |
String | - | VM의 인스턴스 번호 |
hostName |
String | - | VM의 호스트 이름 |
serverName |
String | - | VM의 서버 이름 |
containerName |
String | - | VM의 컨테이너 이름 |
privateIPofServer |
String | - | VM의 사설 IP |
command |
String | - | 파일 실행 명령어 |
processName |
String | - | 프로세스 이름 |
processArg |
String | - | 프로세스 인자값 |
processId |
String | - | 프로세스 ID |
executor |
String | - | 프로세스 실행 계정 |
processIdOfParent |
String | - | 부모 프로세스 ID |
processNameOfParent |
String | - | 부모 프로세스 이름 |
processArgOfParent |
String | - | 부모 프로세스 인자값 |
executorOfParent |
String | - | 부모 프로세스 실행 계정 |
uid |
String | - | 탐지 프로세스 UID |
euid |
String | - | 프로세스 EUID |
gid |
String | - | 프로세스 GID |
egid |
String | - | 프로세스 EGID |
actionStatus |
String | - | 문제에 대한 대응 상태
|
memo |
String | - | 메모 |
actionTime |
Integer | - | 웹쉘 행위 발생 일시(Timestamp) |
detectTime |
Integer | - | 웹쉘 행위 탐지 일시(Timestamp) |
collectTime |
Integer | - | 웹쉘 행위 수집 일시(Timestamp) |
lastUpdatedTime |
Integer | - | 마지막 탐지 내역의 기록 일시(Timestamp) |
isChecked |
Boolean | - | 탐지 내역에 대한 확인 여부
|
memberNo |
Integer | - | VM 사용 회원 번호 |
detectionRuleId |
String | - | 탐지 정책 ID |
suspicionFiles |
Array | - | 의심 파일 목록 |
suspicionIps |
Array | - | 의심 IP 목록 |
osType |
String | - | VM의 OS 유형 |
suspicionFiles
suspicionFiles
에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
suspicionFileId |
String | - | 파일 ID |
fileOriginName |
String | - | 파일 이름 |
fileOwner |
String | - | 파일 소유자 |
weight |
Integer | - | 스코어
|
accessTime |
Integer | - | 파일 접근 일시(Timestamp) |
modifyTime |
Integer | - | 파일 변경 일시(Timestamp) |
changeTime |
Integer | - | 파일 수정 일시(Timestamp) |
detectionId |
String | - | 웹쉘 행위 탐지 내역 ID |
suspicionIps
suspicionIps
에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
suspicionIpId |
String | - | 의심 IP의 ID |
detectionId |
String | - | 웹쉘 행위 탐지 내역 ID |
suspicionIp |
String | - | 의심 IP |
country |
String | - | 의심 IP의 국가 |
platform |
String | - | VM 환경
|
응답 상태 코드
Webshell Behavior Detector API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Webshell Behavior Detector 공통 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"success": true,
"code": 0,
"message": "success",
"result": {
"content": [
{
"detectionId": "2024072323595700000436",
"instanceNo": "25****97",
"hostName": "{hostname}",
"serverName": "{servername}",
"containerName": "",
"privateIPofServer": "***.***.***.***",
"command": "{command}",
"processName": "{process}",
"processArg": "{process-and-arguments}",
"processId": "{command-process-id}",
"executor": "DefaultAppPool",
"processIdOfParent": "{command-process-id}",
"processNameOfParent": "{process}",
"processArgOfParent": "{process-and-arguments}",
"executorOfParent": "DefaultAppPool",
"uid": "33",
"euid": "33",
"gid": "33",
"egid": "33",
"actionStatus": "confirmed",
"actionTime": 1721742708822,
"detectTime": 1721740066493,
"collectTime": 1721740067452,
"lastUpdatedTime": 1721742708822,
"isChecked": true,
"memberNo": 26***90,
"detectionRuleId": "2024072318114600000013",
"suspicionFiles": [
{
"suspicionFileId": "2024072323595800000443",
"fileOriginName": "{web-root-path}/{suspicious-object-name}",
"fileOwner": "S-1-5-32-544",
"weight": 29,
"accessTime": 1721742550000,
"modifyTime": 1721742550000,
"changeTime": 1721742542000,
"detectionId": "2024072323595700000436"
}
],
"suspicionIps": [
{
"suspicionIpId": "2024072323595800000386",
"detectionId": "2024072323595700000436",
"suspicionIp": "***.***.***.***",
"country": "KR",
"platform": "VPC"
}
],
"osType": "LINUX"
}
],
"totalCount": 51,
"pageSize": 1,
"pageIndex": 22,
"totalPages": 51
}
}