Attacks
Get Attacks information for a customer in PDF/JSON/CSV format.
Get Attacks Information
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
{
"data": [
{
"timestamp": 1617723778548,
"defaultIp": "192.168.5.253",
"agent": "IC",
"intcodeAttackDescription": "SSRF",
"details": {
"incidentId": "81a973bd-6471-11eb-8981-73c1c09862f573da2480-25ce-4f13-9a24-8025ce1f13e91617723542988",
"fileName": "com.k2.testapp.k2javavulnerableperf.controller.ssrf.OkHttp",
"methodName": "connect",
"lineNumber": 43,
"serverInfo": {
"name": "Apache Tomcat/9.0.33",
"homePath": "",
"basePath": "",
"customConfigPath": null,
"ports": null,
"deployedApplications": [
{
"deployedPath": "/k2-java-vulnerable-perf-1.0.0.jar",
"appName": "K2 Java Vulnerable Performance Application",
"sha256": "6875e08eaf0f144a347acd8bca80f5e54c39b37170dfee442399201f24664abd",
"size": "112 MB",
"ports": [
8080
],
"contextPath": "/"
}
]
},
"ports": [
[
8080
]
],
"httpUrl": "/ssrf/okhttpclient",
"method": "POST",
"parameterMap": {
"count": [
"50"
],
"url": [
"http://192.168.5.78:8282/forkexec-demo"
]
},
"executedQuery": [
"http://192.168.5.78:8282/forkexec-demo"
],
"vulnerabilityCaseType": "HTTP_REQUEST"
}
},
{
"timestamp": 1617724343425,
"defaultIp": "192.168.5.78",
"agent": "IC",
"intcodeAttackDescription": "Remote Code Execution",
"details": {
"incidentId": "ade61d73-8be6-11eb-b2e9-c3c422b368fa38ac09ba-34ee-4582-ac09-ba34ee3582261617722213618",
"fileName": "com.k2.fork.and.exec.ProcessBuilderServlet",
"methodName": "doPost",
"lineNumber": 44,
"serverInfo": {
"name": "Apache Tomcat/8.5.34",
"homePath": "",
"basePath": "",
"customConfigPath": null,
"ports": null,
"deployedApplications": [
{
"deployedPath": "/etc/apache-tomcat/webapps/forkexec-demo",
"appName": "ForkExec-Demo",
"sha256": "fd48e6804d3b07dd7ec23d3b287f37e80ca514f17205df93a2fcd8649ab401a7",
"size": "27 KB",
"ports": [
8080
],
"contextPath": "/forkexec-demo"
}
]
},
"ports": [
[
8080
]
],
"httpUrl": "/forkexec-demo/ProcessBuilderServlet",
"method": "POST",
"parameterMap": {
"command": [
"ls .;"
]
},
"cookie": "jenkins-timestamper-offset=-19800000; remember-me=YWRtaW46MTU3NjUwMDYzMTc5Mjo1OTNiYTBiMTZkYzQyODU5Mzc1Y2MwMzU1NDM4ZGM0NQ; SESSIONID=java_server",
"executedQuery": [
"/bin/sh -c ls .;"
],
"vulnerabilityCaseType": "SYSTEM_COMMAND"
}
}
]
}Query Param Possible Values
attackTypes
cURL Example
Responses
JSON
CSV

PDF

Accessing Attacks API Data On K2 Portal
Last updated
Was this helpful?