March 17, 2016

Spammers are abusing ill-configured U.S. dot-gov domains and link shorteners to promote spammy sites that are hidden behind short links ending in””.

shellgameSpam purveyors are taking advantage of so-called “open redirects” on several U.S. state Web sites to hide the true destination to which users will be taken if they click the link.  Open redirects are potentially dangerous because they let spammers abuse the reputation of the site hosting the redirect to get users to visit malicious or spammy sites without realizing it.

For example, South Dakota has an open redirect:

…which spammers are abusing to insert the name of their site at the end of the script. Here’ a link that uses this redirect to route you through and then on to But this same redirect could just as easily be altered to divert anyone clicking the link to a booby-trapped Web site that tries to foist malware.

The federal government’s stamp of approval comes into the picture when spammers take those open redirect links and use to shorten them.’s service automatically shortens any US dot-gov or dot-mil (military) site with a “” shortlink. That allows me to convert the redirect link to from the ungainly….

…into the far less ugly and perhaps even official-looking:

Helpfully, Uncle Sam makes available a list of all the links being clicked at this page. Keep an eye on that and you’re bound to see spammy links going by, as in this screen shot. One of the more recent examples I saw was this link — http:// 1.usa[dot]gov/1P8HfQJ# (please don’t visit this unless you know what you’re doing) — which was advertised via Skype instant message spam, and takes clickers to a fake TMZ story allegedly about “Gwen Stefani Sharing Blake Shelton’s Secret to Rapid Weight Loss.”

Spammers are using open redirects on state sites and to make spammy domains like this one look like .gov links.

Spammers are using open redirects on state sites and to make spammy domains like this one look like .gov links.

Unfortunately, a minute or so of research online shows that exact issue was highlighted almost four years ago by researchers at Symantec. In October 2012, Symantec said it found that about 15 percent of all URLS were used to promote spammy messages. I’d be curious to know the current ratio, but I doubt it has changed much.

A story at the time about the Symantec research in Sophos‘s Naked Security blog noted that the curator of — the U.S. General Services Administration’s Office of Citizen Services and Innovative Technology — was working with to filter out malicious or spammy links — pointing to a interstitial warning that pops up when it detects a suspicious link is being shortened.

KrebsOnSecurity requested comment from both and the GSA, and will update this post in the event that they respond.

I wanted to get a sense of how well’s system would block any .gov redirects that sent users to known malicious Web sites. So I created .gov shortlinks using the South Dakota redirect,, and the first page of URLs listed at — a site that tracks malicious links being used in active attacks.

The result?’s system allowed clicks on all of the shortened malicious links that didn’t end in “.exe,” which was most of them. It’s nice that at least tries to filter out malicious links, but perhaps the better solution is for U.S. state and federal government sites to get rid of open redirects altogether.

The warning that sometimes pops up if you try to shorten known, malicious links.

The warning that sometimes pops up if you try to shorten known, malicious links.

I generally don’t trust shortened links, and have long relied on the extension for Google Chrome, which lets users unshorten any link by right clicking on it and selecting “unshorten this link”. also pulls reputation data on each URL from Web of Trust (WOT).

Fun fact: Adding a “+” to the end of any link shortened with will take you to a page on that displays the link actual link that was shortened.

How do you respond to shortened links? Sound off in the comments below.

Update, Mar. 22, 6:20 p.m. ET: A GSA spokesperson said that When GSA learns that an open redirector is being used for links, “we reach out to the owner and ask that it be shut down. We are also working with Bitly to remove links with open redirectors that aren’t shut down at our request. GSA will continue to take the necessary steps to keep .gov domains secure, and we encourage anyone who discovers an open redirector in the .gov space to notify the affected agency so that it can be disabled.”

37 thoughts on “Spammers Abusing Trust in US .Gov Domains

  1. Nancy

    Small Typo towards the bottom where you reference NORTH Dakota rather than SOUTH Dakota as the link in the pictures would suggest.

    “…So I created .gov shortlinks using the North Dakota redirect,, and the first page of URLs listed….”

  2. wleemikell

    I’m with the government, I’m here to help… Eyes rolling.

  3. Chris Nielsen

    When I report spam using there are almost always URLs that redirect to the target site or sometimes a second url that directs to the target site. Bit,ly use to be popular, but due to their proactive stance on abuse goog.le has become a top choice. But anyone can buy a cheap domain and set one up with freely available scripts ( or just by creating an redirect file (

    What I generally do is click on the link in the spam and add all the URLs I find that way into my spam report. That way, even if the URLs in the spam stop working, there will be a report sent to the systems that host the target URLs. These are generally affiliate sites and the URLs generally have an ID for the affiliate that will profit from the spam. That way the affiliate site can take action against affiliate and close their account.

    What we need is spam detection software that runs at the server level which can detect outgoing spam and alert the hosting provider of possible abuse at the account level. Just blocking incoming spam doesn’t really do very much.

  4. AndrewZ

    Thank you for the article Brian

    Great to know about the + with

    There is only so much time in the day. My stance has been if the URL is shortened, I’ll spend my short amount of time somewhere else. Most of us are not typing URLS – if it’s not on a billboard why do they need to be obfuscated?

    1. Wharrgarble

      URL shorteners began during the prime years of Usenet, when some posting programs would spread a long URL over multiple lines and make it unclickable; providing a link that didn’t have to be copied and pasted was seen as courteous. In recent times shorteners have been heavily used by posters trying to post a link while staying within the character limit on Twitter.

      Then you have the jokesters who came up with sites like hugeurl, which provided massively long links, as well as “urlshorteningservicefortwitter”, a shortener with a domain name so long it intentionally made itself undesirable for its ostensible use.

  5. lessismoreorless

    Great heads up post. I’ve always been worried about url shorteners because they have been great obfuscation tools for nefarious links. Early on, users trusted these way too much and I did not, but now I have trust in the big name ones like or the sort. I would imagine google does a decent job of using some sort of 3rd party or internal reputation/filtering/sandboxing of URL destinations before allowing the redirect to be successful. It looks like bitly has some very weak filtering working based on what you reported. Also,, being solely in the business of url redirection, has some sort of conflict of interest in deploying stronger safe guards because they can’t afford to have too many false positives compared to competitors.

    The combination of bitly and the gov redirect is really scary because it creates a 2nd hop of indirection making some of those url shortener sites reputation/filtering protections useless. I would imagine this attack happens at many trusted websites that have open redirects, not just .gov

    Thanks for the unshortener extension! Will be using that to help from now on for sure!

  6. Thomas Caldwell

    that stream was fascinating, I saw several really strange things go by… this one was very strange. why would someone in china care about the traffic cams in the US? but when you try to go to that ftp site, it stops and that novotny folder is gone…. surveillance drop for a spy maybe?

    {“h”:”1micznz”,”g”:”1micznA”,”l”:”anonymous”,”hh”:””,”u”:””,”r”:”direct”,”a”:”Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2″,”i”:””,”t”:1458258254,”k”:””,”nk”:0,”hc”:1404254350,”_id”:”047e2cc9-298e-13a9-4c0e-8272b0e8011f”,”al”:”en-US”,”c”:”CN”,”tz”:”Asia/Chongqing”,”gr”:”30″,”cy”:”Shenzhen”,”ll”:[22.5333,114.1333],”sl”:”1micznz”}

  7. Robert Scroggins

    I just regard any shortened link as malicious and don’t mess with them.


  8. KFritz

    As of 9 pm eastern time, the Krebs redirect doesn’t work. Could it be that North Dakota is more concerned about a safe, but publicly embarrassing link than it might be about a lesser-known, but malicious link? Just askin’.

    1. Finman

      I tried the “krebsonline” redirect and it timed out. I replaced Brian’s site address with my own, same result.

        1. Alan

          It’s not too difficult to find another one. I did in like 5 minutes.

  9. cooloutac

    wow you reading my mind again lol. good story.

  10. Bob

    I honestly don’t see this as’s problem at all. They’re shortening URLs, which is exactly what they’re supposed to be doing. There’s always going to be some risk in shortened URLs. That’s never going away. The open redirect, on the other hand, is lazy and shameful.

  11. Jake Brodsky

    So, we shouldn’t trust anything ending in .GOV. I don’t see why this is a bad thing.

  12. Richard

    I use to shorten links all the time:

    1. Makes email look nicer. Friends and Family are much more afraid of long, impossible for a novice to parse.
    2. Email is often directed to smart phones these days with impossible to read copy/paste tiny screens.
    3. Google lets me know how many links were exercised, which is feedback on whether my efforts is worth it.
    4. Hover on the google links and they will show you the recipient what the real link is ( and as I recall a thumbnail of the site).

    Yes, I look suspiciously at short links on web pages and email from people I don’t know.

    C’mon, life’s too short, url’s are not. 🙂

    1. Doc

      And to think I was going to talk to soomene in person about this.

  13. Tom

    Can’t say I’m surprised at the government being exploited by cybercriminals … it’s outrageous though!

  14. Jimmy Trio

    Maybe it’s just me but the beauty of this attack is in having the link show the real authentic website so the victim doesn’t question it. Using a shortened URL brings about suspicion even if it says

    The attack should have the authentic site and the parameter should be URL encoded so they don’t know where they will ultimately go.

  15. Butterflyguy

    I notice that the only extension in the Chrome store is
    The is a website where you have to paste the link in to see where it will take you.
    It may work on an Android device, but not in the Chrome browser.

  16. hul kodaikanal

    I comment whenever I especially enjoy a article on a site or I
    have something to add to the discussion. It is triggered
    by the fire communicated in the post I looked at. And on this article Spammers Abusing Trust in US
    .Gov Domains — Krebs on Security. I was moved enough to drop a
    comment 😛 I do have 2 questions for you if it’s okay.
    Could it be simply me or does it give the impression like some of these remarks look
    as if they are written by brain dead individuals? :
    -P And, if you are writing on other online social sites, I would like to keep up with you.
    Would you make a list every one of your social sites like your Facebook page, twitter
    feed, or linkedin profile?

  17. Russell M

    As a security professional, I tend to visit shortened links from a Linux VM running an intercepting proxy so I can see what all is going on. Depending on how much time/boredom I have to spare, and how suspicious the traffic looks, sometimes I’ll mess around with wget using various user-agents, or will visit the link through some sandboxes and see what happens.

    More time than they probably deserve, but I have a bit of an “Ooo shiny!” mindset when it comes to potential badness.

  18. superhero names in real life

    I have learn several good stuff here. Certainly price bookmarking for revisiting.
    I surprise how so much attempt you put to make this sort of great informative website.

  19. bizatl

    What’s up everyone, it’s my first visit at this website, and paragraph is truly fruitful for me, keep up posting these posts.

  20. Hayton

    The link to does not work in Chrome : it’s blocked, with a Chrome error page that says (in part) :

    “ normally uses encryption to protect your information. When Google Chrome tried to connect to this time, the website sent back unusual and incorrect credentials. … Your information is still secure because Google Chrome stopped the connection before any data was exchanged.

    You cannot visit at the moment because the website sent scrambled credentials that Google Chrome cannot process.”

    It may be that the Chrome connection stipulates the use of https and the website can’t or won’t set up a secure connection. Or perhaps (as the error message says) “an attacker is trying to pretend to be, or a Wi-Fi sign-in screen has interrupted the connection”.

    Anyone else getting this?

Comments are closed.