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.