Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
marcan42's profile
Hector Martin
Hector Martin
Hector Martin
@marcan42

Tweets

Hector Martin

@marcan42

If it ain't broke, I'll fix it! I'm porting Linux to Apple Silicon Macs at @AsahiLinux. http://patreon.com/marcan  | http://github.com/sponsors/marcan 

Tokyo, Japan
marcan.st
Joined May 2009

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      Can confirm the Spanish intelligence agency is basically incompetent. They tried to hire me once, but didn't know how to use PGP properly. Their email server had reverse DNS configured incorrectly. Their webmail leaked the client IP. Which I found selling weapons in a forum.pic.twitter.com/yPYg3qqust

      5 replies 110 retweets 293 likes
      Show this thread
    2. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      Let's go ahead and document the fails for posterity. First I got was a cold e-mail, with the nondescript subject (translated) "I am interested in your work", a "message.pgp" attachment, and a "please read the attached message" style body.

      1 reply 1 retweet 21 likes
      Show this thread
    3. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      I almost immediately marked it as spam, but I gave it a second thought. These were the e-mail headers.pic.twitter.com/MoZ9psNQQT

      2 replies 0 retweets 14 likes
      Show this thread
    4. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      Note how their e-mail server claims to be "http://ccn-cert.es ", but its IP address (213.192.250.68) had no reverse DNS set (unknown). This is a big no-no; my server had a permissive config at the time, but many others would've rejected this message (as mine would today).

      1 reply 0 retweets 12 likes
      Show this thread
    5. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      Of note, CCN-CERT is the CERT team of the National Cryptologic Center, which is a child agency of the National Intelligence Center, which is the main Spanish intelligence agency. http://ccn-cert.es  resolved to a different IP, FWIW.

      1 reply 0 retweets 9 likes
      Show this thread
    6. Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      Now, the fun thing is they are using Horde IMP, a webmail program. And it records the browser's IP address as a Received header. So the e-mail was sent from 80.38.105.203. That's a typical static IP address range for Spain's largest (ex-national) ISP, Telefonica. Think AT&T.

      2 replies 0 retweets 15 likes
      Show this thread
      Hector Martin‏ @marcan42 8 Apr 2020
      • Report Tweet
      • Report NetzDG Violation

      At the time, Googling this IP address yielded a web forum with public poster IPs... and a user posted from that IP to sell firearms. Yes, really. I neglected to screenshot it at the time and the forum is gone, but that was pretty hilarious. Remember, that was a static IP.

      11:03 AM - 8 Apr 2020
      • 14 Likes
      • Manuel Atug Tyson Key Borja Durán Real AI Tоxen Conner Mario Vilas morkl reminds you that Black Lives Matter Jevin Sweval
      1 reply 0 retweets 14 likes
        1. New conversation
        2. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So now let's look at software versions. The e-mail is from 2012. Surely a CERT agency would be running up to date server software, right? Horde 4.1.4, was released on 2007-03-14. Exim 4.63 was released on 2006-07-31. That's 5 year old software.

          1 reply 0 retweets 14 likes
          Show this thread
        3. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So now, onto the message itself. They used PGP and I guess pulled my public key from my website or keyservers. However, instead of using in-line PGP, or PGP/MIME, they just attached a separately encrypted message as an attachment. That's... odd.

          1 reply 0 retweets 9 likes
          Show this thread
        4. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          The message itself decrypted properly, but just asked for an interview with only the vaguest of hints of what this was about. The message was unsigned. No public key was provided to reply, none existed in the keyservers for this address, nor on their website.

          1 reply 0 retweets 12 likes
          Show this thread
        5. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          They also sent it to my old 1024-bit ELG public key, which by then was superseded and obsoleted, and I was using a new 4096-bit RSA key which had been published to the keyservers and my website in 2011.

          1 reply 0 retweets 10 likes
          Show this thread
        6. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So I had no way to send an encrypted reply, and no way to verify that the message really came from them (in particular, given the horrible SMTP server config, this is literally indistinguishable from a spoofed e-mail anyone could send).

          1 reply 0 retweets 9 likes
          Show this thread
        7. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So I replied in cleartext, asking for a key, *explicitly* asked for a signed message and a verbatim public key for me to use. They replied in the same style, just with the public key pasted into the encrypted message, but no signature.

          1 reply 0 retweets 12 likes
          Show this thread
        8. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          But now I have their key, in ASCII armored format, and it starts like this. Yes, they were using a non-commercial freeware version of PGP Desktop for commercial purposes. Version 9.10.0 has a code exec CVE from 2010. https://nvd.nist.gov/vuln/detail/CVE-2010-3397/ …pic.twitter.com/ghfwxEHBjN

          1 reply 0 retweets 22 likes
          Show this thread
        9. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So let's recap: 5 year old webmail, 6 year old e-mail server, >2 year old PGP with an arbitrary code exec CVE. The key itself? The userid was "CCN-CERT.PublicKey <CCN-CERT.PublicKey.Depart@CCN.es>", which does not match the sender of the e-mail either.

          1 reply 2 retweets 19 likes
          Show this thread
        10. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          Not that this was going to go anywhere by now, but I replied with inline PGP, and sent them my phone number to see what their story was. I didn't hear back for two weeks. Apparently they had gone on vacation.

          2 replies 0 retweets 10 likes
          Show this thread
        11. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          At least they managed to sign their message when they finally replied? Still using attachments though. I figured this wasn't worth wasting any more of my time on by then, didn't reply and never heard back.

          1 reply 0 retweets 9 likes
          Show this thread
        12. Hector Martin‏ @marcan42 8 Apr 2020
          • Report Tweet
          • Report NetzDG Violation

          So there you go, that was my recruiting experience from a branch of Spain's NSA. Not exactly a shining example of competence.

          3 replies 2 retweets 34 likes
          Show this thread
        13. End of conversation

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info