Jump to content

ESET Thinks my C++ code with libcurl is a Trojan

Go to solution Solved by Marcos,

Recommended Posts

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 = 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);

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

  • Administrators
  • Solution

Thanks for the heads-up. The detection created by an automated mechanism has been removed.

Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...