MENU
      GetWebshell

        GetWebshell


        記事の要約

        VPC環境で利用できます。

        検知対象として登録したリソースのうち、ウェブシェルと疑われる行為が検知された履歴を照会します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/detections

        リクエストヘッダ

        Webshell Behavior Detector APIで共通して使用されるヘッダの詳細は、Webshell Behavior Detectorの共通ヘッダをご参照ください。

        リクエストクエリパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        pageIndexIntegerRequiredページ番号
        pageSizeIntegerRequiredページ表示数

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request GET 'https://wbd.apigw.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'
        Shell

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの説明は次の通りです。

        フィールドタイプ必須の有無説明
        successBoolean-リクエスト処理の有無
        codeInteger-レスポンスコード
        messageString-レスポンスメッセージ
        resultObject-レスポンス結果
        contentArray-ウェブシェル行為の検知履歴リスト
        totalCountInteger-レスポンス結果数
        pageSizeInteger-ページ表示数
        pageIndexInteger-ページ番号
        totalPagesInteger-ページの総数

        content

        contentの説明は次の通りです。

        フィールドタイプ必須の有無説明
        detectionIdString-ウェブシェル行為の検知履歴 ID
        instanceNoString-VMのインスタンス番号
        hostNameString-VMのホスト名
        serverNameString-VMのサーバ名
        containerNameString-VMのコンテナ名
        privateIPofServerString-VMのプライベート IPアドレス
        commandString-ファイル実行コマンド
        processNameString-プロセス名
        processArgString-プロセス引数値
        processIdString-プロセス ID
        executorString-プロセス実行アカウント
        processIdOfParentString-親プロセス ID
        processNameOfParentString-親プロセス名
        processArgOfParentString-親プロセス引数値
        executorOfParentString-親プロセス実行アカウント
        uidString-検知プロセス UID
        euidString-プロセス EUID
        gidString-プロセス GID
        egidString-プロセス EGID
        actionStatusString-問題対応の状態
        • confirmed | blank
          • confirmed: 確認完了
          • blank: 未確認
        memoString-メモ
        actionTimeInteger-ウェブシェル行為の発生日時(Timestamp)
        detectTimeInteger-ウェブシェル行為の検知日時(Timestamp)
        collectTimeInteger-ウェブシェル行為の収集日時(Timestamp)
        lastUpdatedTimeInteger-最終検知履歴の記録日時(Timestamp)
        isCheckedBoolean-検知履歴を確認したかどうか
        • true | false
          • true: 確認完了
          • false: 未確認
        memberNoInteger-VM使用会員番号
        detectionRuleIdString-検知ポリシー ID
        suspicionFilesArray-疑わしいファイルリスト
        suspicionIpsArray-疑わしい IPアドレスリスト
        osTypeString-VMの OSタイプ

        suspicionFiles

        suspicionFilesの説明は次の通りです。

        フィールドタイプ必須の有無説明
        suspicionFileIdString-ファイル ID
        fileOriginNameString-ファイル名
        fileOwnerString-ファイルの所有者
        weightInteger-スコア
        • スコアが高いほどウェブシェルである可能性が高い
        accessTimeInteger-ファイルアクセス日時(Timestamp)
        modifyTimeInteger-ファイル変更日時(Timestamp)
        changeTimeInteger-ファイル更新日時(Timestamp)
        detectionIdString-ウェブシェル行為の検知履歴 ID

        suspicionIps

        suspicionIpsの説明は次の通りです。

        フィールドタイプ必須の有無説明
        suspicionIpIdString-疑わしい IPアドレスの ID
        detectionIdString-ウェブシェル行為の検知履歴 ID
        suspicionIpString-疑わしい IPアドレス
        countryString-疑わしい IPアドレスの国
        platformString-VM環境
        • VPC | CLASSIC

        レスポンスステータスコード

        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
            }
        }
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.