Wednesday, August 22, 2018

Journalism? Meh.

I don't usually write this sort of post anymore, mostly because it's no longer catharsis for me, but there's an article on CSO Online, entitled "32,000 smart homes can be easily hacked due to misconfigured MQTT servers" (by Ms. "Not Her Real Name" Smith), that annoys me to no end. It comes across as little more than click-bait and the magazine doesn't allow comments. My issues with the article follow.

The author's derision, aimed towards use of an "older" protocol, is irksome. Talking about a "bygone era when security wasn't a concern" is the trademark of an engineer who's promoting something else (solution, self, or corporate stance). That said, I do like how the author avoided use of the word "legacy" (I see it all too often) but, using her logic, Tim Berners Lee could be blamed for the Equifax leaks. The insecurity lies in the lack of proper configuration, not the protocol.

You keep hearing about how IoT is insecure? It's the "I" in IoT that's the problem. The article somehow avoids discussing how MQTT was not meant to run in any environment other than a local LAN or within a single security enclave. As with any other similar protocol, running it "on the Internet" adds insecurities.

Another problem is use of the phrase "Avast found...". Let's give credit where credit is due. Avast did not scan the Internet looking for insecure MQTT servers. Instead, someone at Avast used Shodan to get their numbers. Effectively, this is taking credit for someone else's work. Do they no longer teach "quote your sources" in college?

I have a Shodan account. As of this morning, the MQTT numbers break out to:

Total:  49,223
China: 12,185
US:  8,315
Germany: 3,048
HK:   2,177
RoK:  2,033

If you search specifically for port 1883, the numbers are:

China: 12,115
US:  8,275
Germany: 3,042
HK:  2,186
RoK:  2,031

This article butts up against another topic: being a journalist doesn't exclude you from laws. It doesn't matter that an insecure server exists on the Internet. If you connect to that server without permission, you've violated a number of laws. It's irresponsible not to mention this. The article should include such a warning, vice implying how easy the servers are to access.

The article ignores that there are some servers (okay, only a few) that are set up to be intentionally insecure. There are a number of use cases where a server might be set up insecure:

  • A few of the insecure servers might be the honeypots set up by varous organizations. A Google search for "honeypot mqtt" returns some interesting examples.
  • Some servers are intentionally set to be insecure. Ignoring the usual hackme/CTF stuff, brokers like HiveMQ are set up open, so that others can develop code and/or learn about use of MQTT. (Google search for "free mqtt broker"). Others are set up to provide public services (e.g., weather stations, ISS locator, stock data, Twitter feeds, BBC Radio 3 LiveTexts) (examples here and here).
  • Some people don't care that they're being tracked. More often than not, they're tracking themselves and don't care if anyone else knows their location. The free MQTT servers are "open" and the encrypted/authenticated servers are not. Some people make the conscious choice to use the open servers. Some of those already know that they can be tracked via other means (e.g., your Android or Apple phone). The author's "shot" at OwnTrack fails to recognize that OwnTrack requires the user to "find" an Internet-accessible MQTT server (OwnTrack doesn't provide such). The author should probably next write an article about how APRS is insecure.

This doesn't mean that there aren't insecure MQTT servers on the Internet. They do exist and they make up the majority of the numbers discussed in the article. However, not accounting for legitimate use cases, warning about accessing systems without permission, etc. (when writing a "doom & gloom" article) is just shoddy journalism. My 7th grade English teacher would have given this article a C (also, he'd probably make a comment about the quality of the magazine editor).

Wednesday, August 1, 2018

What was I reading in July 2018?

This was another of those months where I've been so busy that I did very little reading. Once again, I'm studying for multiple certification tests (re-tests?). Related to reading, the current Humble Bundle is looking quite interesting.

For those with access to the house network, the ESXi upgrade (to 6.5) appears to have worked without issue. Also in the network are: 2 Kali instances with the first target and a full reverse proxy, a Gogs instance, a Markdown editor, a Vim trainer, and a web-based man page reader. Some heavy tweaking of the reverse proxy was required but it appears to be working (including access to VMRC from the Hamachi network).

For awhile, I was having issue with the "s" (star) key in TT-RSS. It turns out that my customized instance of Gleebox had updated and the navigation settings had shifted from the right-side of the keyboard to the left. Finding it required that all extensions be turned off and behavior studied while each was re-enabled. It appears to be "playing nice" again.

I received a DLP-to-RPi adapter board from Mick Makes. Although it's intended to work with the RPI Zero, I'm hoping that it'll work with the new B+. It should, because the Zero and the B+ have the same header pin-out. Fingers crossed!

I've also turned on HTTPS for the blog (just now). Whether or not it works well remains to be seen. In any case, this past month's reading...

2018-07-02

- How we discovered three poisonous books in our university library
- Pointers Are More Abstract Than You Might Expect in C
- There was a time when search engines were a thing. And it seems they still are
- SMS over IRC
- Reverse Engineering for Beginners

2018-07-03

- Anti-Flow
- The advantages of an email-driven git workflow
- Water compresses under a high gradient electric field

2018-07-11

- This new dual-platform malware targets both Windows and Linux systems

2018-07-13

- Your IoT security concerns are stupid

2018-07-17

- A Short Guide to Hard Problems
- did.txt file
- How to Implement Open Source Container Security: Part 1 - Runtime Security

2018-07-23

- C's Biggest Mistake
- Autopsy of a deep learning paper

2018-07-31

- Leonardo Da Vinci's To Do List (Circa 1490)

Above was generated by a homegrown bolt-on script for Wallabag, which is a free utility for capturing web content so that it can be read later.

Monday, July 2, 2018

What was I reading in June 2018?

Didn't get much reading done this past month. Between the day job and moving/updating the lab, there was very, very little leisure time was left. I did manage to write a script to clean up buddy requests in a Bitlbee/ZNC architecture (separate post in this blog).

For those with connectivity to the lab, it's now running on ESXi v6.5. This means that ESXi labs are possible, without having to install the vSphere Client. Because most modern hypervisor platforms are "nestable", this means that you can install/learn about other hypervisors (or install ESXi on top of ESXi).

In any case, last month's articles:

2018-06-04

- De Bruijn sequence
- Microsoft Is Said to Have Agreed to Acquire Coding Site GitHub
- The Long View: Nobody Expects an Accountable Inquisition
- Patents - how and why to get them
- Price's Law: Why Only A Few People Generate Half Of The Results
- Today we mitigated 1.1.1.1
- Microsoft's Interest In Buying GitHub Draws Backlash From Developers

2018-06-08

- Marcus Hutchins WannaCry-killer hit with four new charges by the FBI

2018-06-10

- Reverse Engineering One Line of JavaScript

2018-06-14

- SPARK Core - Nextron Systems - Yara scanner. Looks interesting.

2018-06-18

- Face recognition with OpenCV, Python, and deep learning
- x86 assembly doesn't have to be scary interactive

2018-06-24

- Calm Down: It's Only Assembly Language
- Trachtenberg system

Thursday, June 14, 2018

Auto-answering friend/buddy requests

I use a combination of Bitlbee and ZNC to maintain a persistent presence on Jabber and IRC, even when I'm not actually online. Bitlbee will convert a number of non-IRC chat services (Facebook, Twitter, Jabber, Gtalk) into IRC channels and ZNC provides the ability to cache any/all incoming messages. My setup:

   chat client -> ZNC -> Bitlbee -> multiple non-IRC servers
                     \-> multiple IRC servers

The problem: One of the problems with public chat servers is that your receive a lot of buddy/friend requests from people you don't know. Bitlbee requires that you type the word "no" in response to each request (there is no group-answer function).

The solution: The following script leverages another ZNC feature, where multiple concurrent connections are allowed. This means that you can run the following script while being connected with your favorite IRC client. It will watch for the phrase "You can use the yes/no commands to accept/reject this request." and send "no" in response.

Notes/assumptions:

  • Assumes that you're already logged onto Bitlbee, from your IRC client, via ZNC,
  • Run this script once you're on a Bitlbee channel which has a number of friend/buddy requests.
  • You must type the first "no".
  • Recommendation: only turn on one Bitlbee channel at a time.

The script:

#!/usr/bin/perl

use IO::Socket;

# set up the connection
$con = IO::Socket::INET->new(PeerAddr=>'127.0.0.1',
        PeerPort=>'6667',
        Proto=>'tcp') || print "Error! $!\n";
print $con "User tim\r\n";

# allow time for any server side stuff to happen
sleep 3;

# connect to the bitlbee channel on ZNC
print $con "PASS tim/bitlbee:PASSWORD\r\n";

# following shouldn't be needed
#print $con "NICK tim\r\n";

# join the bitlbee command channel
print $con "JOIN \&bitlbee\r\n";

# loop and process messages from the server
while ($answer = <$con>) {

        if($answer =~ /^PING(.*)$/i) {
                print $con "PONG $1\r\n";
        }

        # following 2 lines should be on 1
        if($answer =~ /\:root\!root\@cubietruck PRIVMSG \&bitlbee :You can \
use the \^Byes\^B\/\^Bno\^B commands to accept\/reject this request/){
                print $con "PRIVMSG &bitlbee :no\r\n";
        }
}

Sunday, June 3, 2018

What was I reading in May 2018?

There was a slight delay in posting the below. Between spending last weekend at the ER and spending this weekend moving the office, there was very little time to post. In the interim, we've ordered some cheap toys from eBay. Will talk about them later.

2018-05-06

- Cloudflare DNS service Blocked By AT&T - Why there's a blocklist at all is cause for concern.
- Fail Of The Week: Never Assume All Crystals Are Born Equal

2018-05-11

- Authoritative GNU Radio training videos
- Google Duplex: An AI System for Accomplishing Real-World Tasks Over the Phone
- Researchers hide information in plain text - It's not what you immediately think. Instead, it's minor variations in the font's pixels.
- Pipe Logic - Code equivalents of circuits and components.
- Multiple OS Vendors Release Security Patches After Misinterpreting Intel Docs
- Terry Gilliam Reveals the Secrets of Monty Python Animations: A 1974 How-To Guide
- Low Level Bit Hacks You Absolutely Must Know
- Linux sandboxing improvements in Firefox 60

2018-05-14

- The Big Lie ISPs Are Spreading in State Legislatures Is That They Don't Make Enough Money
- The State of Cryptocurrency Mining
- Top 20 Essential ESXCLI Commands You Need to Know

2018-05-16

- Metasploitable3 CTF

2018-05-17

- The sad state of sysadmin in the age of containers
- Finland offers free online Artificial Intelligence course to anyone, anywhere
- To Build Truly Intelligent Machines Teach Them Cause and Effect
- How to Run a Blockchain on a Deserted Island with Pen and Paper
- Why Great Employees Quit -- Instead Of Admitting They're Unhappy
- The Cyber Security Body Of Knowledge (CYBOK)
- Eigenvectors and Eigenvalues explained visually
- Beginner's Guide to IDAPython

2018-05-20

- An Interesting Pattern in the Prime Numbers: Parallax Compression
- Abusing Proxies for DSLs - Stuff and Things
- The Markov Property, Chain, Reward Process and Decision Process

2018-05-23

- Quantum Physics May Be Even Spookier Than You Think
- General Thinking Tools: 9 Mental Models to Solve Difficult Problems

2018-05-24

- Command-line Tools can be 235x Faster than your Hadoop Cluster

2018-05-26

- Making Driverless Cars Change Lanes More Like Human Drivers Do

2018-05-28

- Why You Can't Just Block EU Visitors, EU Customers, or Any EU Traffic Under GDPR
- Letting Neural Networks Be Weird: When Algorithms Surprise Us

2018-05-29

- USB Packet Snooping

Above was generated by a homegrown bolt-on script for Wallabag, which is a free utility for capturing web content so that it can be read later.

Sunday, May 6, 2018

What was I reading in April 2018?

Another busy month. Participated in a local CTF (team placed third!). Took a class on ISA standards for industrial control systems (now studying for those tests). Spent most of the last two weeks face down in a single spreadsheet and the danged thing still won't load.

In any case, here's this past month's list...

2018-04-02

- sigrok - Short version: a portable, cross-platform, Free/Libre/Open-Source signal analysis software suite. Supposedly ti will work with the HackRF One.
- "Error 19874: You must have Office Professional Edition to read this content please upgrade your licence." - Lower tech malware with in interesting twist.
- A Pickpocket's Tale
- Fewbytes/rubber-docker - Understanding Docker by building it (or something like it) from scratch.
- Poor grades tied to class times that don't match our biological clocks - Not true! I aced the 8 a.m. basic electronics class. (Or was that because I'd already had the theory in trade school?)
- Turn TensorFlow functions into mathematical notations and diagrams

2018-04-06

- 1.1.1.1: Cloudflare's new DNS attracting 'gigabits per second' of rubbish - Exposing DNS shenanigans, because not everyone learned to play nicely in Kindergarten. Note: there's also a web server at that address. They also have a Twitter feed.
- chpmrc/zero-width-chrome-extension - Exposing web bugs by replacing them with emojis?
- Venetian Cryptography - A bit of history.
- Failing to secure DNS is 'savage ignorance': Geoff Huston - Not sure that I'd agree with the "it must not lie" part. There's all sorts of lies in the DNS system that we rely on (e.g., poisoning your own DNS is a simple/quick way of keeping your users off of certain sites).
- Computer system transcribes words users speak silently - Remember the looks we'd get when Bluetooth headsets first came out? I don't care, I want one of these.
- Writing To The Framebuffer Just keeping track of a needed reference here...
- Google bug bounty for security exploit that influences search results
- Giving every Tor Hidden Service a IPv6 address
- Linux kernel lockdown and UEFI Secure Boot - This is an attempt to make things better, unlike other shenanigans that can be performed within that architecture (including persistent "malware"). Hint: go read the guidance.

2018-04-07

- Another reason why your Docker containers may be slow
- iliasam/OpenSimpleLidar - Open Hardware scanning laser rangefinder

2018-04-18

- Probability Theory For Scientists and Engineers
- The chemistry of William Gibson's Neuromancer.

2018-04-19

- Toward better phone call and video transcription with new Cloud Speech-to-Text

2018-04-20

- A graphene roll-out - Weird things to come, I'll bet.
- (semi-related to the above) Graphene is Grown With the Same Band Gap as Silicon
- Tokyo and Hong Kong in 2018
- Scuttlebutt: A Decentralized Alternative To Facebook
- WiFi Backscatter
- nslookup, host, dig, whois: DNS Information Gathering - Basic theory, know-your-tools skills

2018-04-22

- how I taught people about load balancers - This one is very interesting as it explains why things are very bad when load balancers go awry.
- A Moby-based container engine for IoT - I'm still not convinced that this is a good idea (adding complexity rarely improves security in the long run).

2018-04-23

- Many Amazon Warehouse Workers are on Food Stamps - My biggest problem with the post: it doesn't suggest a solution. It's just stereotypical Internet bitching. This is nothing more than a hit piece. Same comment about public assistance can be said about U.S. military and adult burger flippers.

2018-04-29

- The Pentagon's Ray Gun Can Stall Cars - Knew a guy in the 70's that could do this but he used a spark-gap generator and a directional antenna (car had to be idling, too).
- Microsoft Attempts To Spin Its Role in Counterfeiting Case
- Intel Movidus and the Forthcoming AI Overlord Revolution - Still haven't had much time to play with this.
- A Mass of Copyrighted Works Will Soon Enter the Public Domain - Holding breath. Watching.

Above was generated by a homegrown bolt-on script for Wallabag, which is a free utility for capturing web content so that it can be read later.

Monday, April 2, 2018

What was I reading in March 2018?

A little less busy than the previous month. Same amount of travel but did get some site-seing in (Grand Tetons!), at the end of a very interesting class. Putting a lot of time in on a complicated project, which is due the first week in April.

2018-03-03

- Machine Learning Crash Course
- google/oss-fuzz
- When distributions get it wrong
- Contributing to OpenMined metaflow-ai
- Learn with Google AI
- Schools are safer than they were in the 90s and school shootings are not more common than they used to be researchers say

2018-03-11

- alevchuk/vim-clutch - Have all of the parts in my junk box but lack the time to do it.
- How To Code Like The Top Programmers At NASA - 10 Critical Rules
- The Hitchhikers Guide to the Galaxy is back with the original cast
- The real cause of large DDoS - IP Spoofing
- Rarely Asked Questions (RAQs)
- learnbyexample/Command-line-text-processing

2018-03-14

- How to write an IRC bot
- Just start writing and the rest will follow
- Advent of D
- How To Corrupt An SQLite Database File

2018-03-15

- Implementing FizzBuzz on an FPGA

2018-03-17

- CrypTools - Learn
- To Test Einstein s Equations Poke a Black Hole
- How Einstein Lost His Bearings and With Them General Relativity
- Hackers Are So Fed Up With Twitter Bots They're Hunting Them Down Themselves - Can someone do something about IRC spam too?

2018-03-18

- PostgreSQL Full Text Search Tutorial
- Louis-Philippe Veronneau - Playing with water
- Kyubyong/speaker_adapted_tts

2018-03-20

- An Introduction to Machine Learning
- An employee whose job was to be sacked - I had a job like this when I was a teenager. Restaurant manager would publicly fire me every Friday and Saturday night. I was a cook the remainder of the time.

2018-03-21

- joaoventura/full-speed-python - Book on learning Python
- Our Discovery of Cramming

2018-03-22

- TCP Tracepoints

2018-03-23

- New bill would prepare us for AI threat - While we're at it, can we do something about Popehat's pony threat? Or better, address the issues we currently have?

2018-03-24

- More Tips for Managing a Fast-Growing Open Source Project - Will not touch this one as it's written from a proprietary point of view. Certain phrases in the article are just...

2018-03-26

- Hilarious and Terrifying? Ways Algorithms Have Outsmarted Their Creators

2018-03-27

- Fediverse Wiki
- Using gpg-agent Effectively
- Look for the duct tape
- You probably have too much motivation - and not enough follow-through
- Why I usually run 'w' first when troubleshooting unknown machines

2018-03-28

- Introducing Cloud Text-to-Speech powered by DeepMind WaveNet technology
- Master your tools
- Google loses Android battle and could owe Oracle billions of dollars - 2018 is turning into The Year of the Undead (Court Cases). This one will be trouble.
- Being Open and Connected on Your Own Terms with our New Facebook Container Add-On

2018-03-29

- Free SSL with a custom domain on GitHub Pages

2018-03-31

- Former Walmart US CEO says Congress should consider splitting up Amazon - Given what Walmart did to businesses in small town America, isn't this just a bit disingenuous/hypocritical?
- Tracing stolen bitcoin
- Total Meltdown?
- Origami-Folded Hydrogel Paper Instantly Generates 110 Volts of Electricity

Above was generated by a homegrown bolt-on script for Wallabag, which is a free utility for capturing web content so that it can be read later.