admin管理员组文章数量:1122846
I am working on a detecting data exfiltration for am android malware. I noticed it makes some post request to the server. I have downloaded the AOSP and modified the Request.java and HttpEngine.java (sendRequest function). All i am seeing is the
11-21 01:27:26.124 2976 3107 I System.out: NetworkInterceptor - Request Body: com.android.okhttp.RequestBody$2@dbb88bc
The body like this. Is there a way i can get the request body in clear text?
I wanted to detect what kind of data is being submitted to the server form victims device. I am working on a behavioral analysis engine for malware detection
I am working on a detecting data exfiltration for am android malware. I noticed it makes some post request to the server. I have downloaded the AOSP and modified the Request.java and HttpEngine.java (sendRequest function). All i am seeing is the
11-21 01:27:26.124 2976 3107 I System.out: NetworkInterceptor - Request Body: com.android.okhttp.RequestBody$2@dbb88bc
The body like this. Is there a way i can get the request body in clear text?
I wanted to detect what kind of data is being submitted to the server form victims device. I am working on a behavioral analysis engine for malware detection
Share Improve this question edited Nov 23, 2024 at 9:59 hashar mujahid asked Nov 22, 2024 at 7:47 hashar mujahidhashar mujahid 12 bronze badges1 Answer
Reset to default 0Looks like you're just logging a RequestBody instance directly. You need to instead parse and log the contents from it.
Check the contentType
to make sure the type is text and get the charset from it. Then use the charset to convert the content to readable text. For example, given byte[] contents
, if the charset is UTF_8
you can do new String(content, StandardCharsets.UTF_8)
.
But if the malware isn't actually sending the data as clear text, this won't help.
本文标签: okhttpExtrcating Body Request ( Data Exfiltration Detection )Stack Overflow
版权声明:本文标题:okhttp - Extrcating Body Request. ( Data Exfiltration Detection ) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305355a1932561.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论