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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Looks 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