Why does this API request not flag any malicious URLs?

513 views
Skip to first unread message

Jamie

unread,
Sep 12, 2021, 1:52:09 PM9/12/21
to Google Safe Browsing API
Hello everyone.

Firstly thank you for taking the time to read this.

I'm trying to use the safe browsing API after a couple of years of not using it and previously the below would work. However now it seems to not flag malicious URLs. I've copied the examples from the docs and that also seems to not work.

What am I doing wrong here?

User-Agent: Fiddler
Content-Length: 659

{
  "client": {
    "clientId": "yourcompanyname",
    "clientVersion": "1.5.2"
  },
  "threatInfo": {
    "threatTypes": [
      "MALWARE",
      "POTENTIALLY_HARMFUL_APPLICATION",
      "UNWANTED_SOFTWARE",
      "SOCIAL_ENGINEERING"
    ],
    "platformTypes": [
     "ANY_PLATFORM"
    ],
    "threatEntryTypes": [
      "URL"
    ],
    "threatEntries": [
      {
        "url": "http://www.urltocheck1.org/"
      },
      {
      },
      {
        "url": "http://www.urltocheck2.org/"
      },
      {
        "url": "http://www.urltocheck3.com/"
      }
    ]
  }
}

Thank you anyone who has the time to respond :-)

Jamie

unread,
Sep 12, 2021, 1:53:10 PM9/12/21
to Google Safe Browsing API
Just to clarify I get a blank response back.

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Sun, 12 Sep 2021 17:47:53 GMT
Server: scaffolding on HTTPServer2
Cache-Control: private
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Content-Length: 3

{}

Jamie

unread,
Sep 12, 2021, 3:17:47 PM9/12/21
to Google Safe Browsing API
Ok its working with http://malware.testing.google.test/testing/malware/* as an example URL in case anyone else hits this issue

nuudhiisaanuudhiisaa7

unread,
Sep 14, 2021, 9:29:29 AM9/14/21
to google-safe-...@googlegroups.com




Sent from my Samsung Galaxy smartphone.

Arush Patel

unread,
Nov 8, 2021, 2:22:28 AM11/8/21
to Google Safe Browsing API
hii..

BIDARINE Kawtar

unread,
Nov 18, 2021, 1:31:56 PM11/18/21
to Google Safe Browsing API
Hi, could you check the result of this domain thefosterles.com I always get Malicious: No with the API. Even it Malicious
Reply all
Reply to author
Forward
Message has been deleted
0 new messages