tobilub04 0 Posted May 19, 2023 Share Posted May 19, 2023 I'm writing an application that goes through different powershell commands and sends the output to an Api in php. Since today, ESET thinks that my code is a Trojan. I found out that it's because I use the curl library: // Initialize cURL session CURLcode res; CURL* curl; curl_global_init(CURL_GLOBAL_ALL); curl = curl_easy_init(); if (curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://link.to.my/api/api.php"); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, jsonString.c_str()); curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, jsonString.size()); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); curl_easy_cleanup(curl); } curl_global_cleanup(); To be precise, it's Win64/Agent_AGen.ACN threat. My operating system is Windows 10, if that's important. Link to comment Share on other sites More sharing options...
Administrators Solution Marcos 5,231 Posted May 19, 2023 Administrators Solution Share Posted May 19, 2023 Thanks for the heads-up. The detection created by an automated mechanism has been removed. Link to comment Share on other sites More sharing options...
tobilub04 0 Posted May 19, 2023 Author Share Posted May 19, 2023 Okay so it worked for an hour or so - but i got the same error again, and it's still because of Curl. Link to comment Share on other sites More sharing options...
tobilub04 0 Posted May 19, 2023 Author Share Posted May 19, 2023 It works again. I have no idea if it's because I did something, you did something, or it was just a bug? Link to comment Share on other sites More sharing options...
Recommended Posts