Better HN
topnewbestaskshowjobs
Log inSign up

bitexploder

7,559 karma · joined Dec 23, 2010 (15y ago) · 2,430 submissions

I did not keep blogging.
Submissions

comment 12y ago · link · parent

Use HSTS. Never use HTTP even to redirect to HTTPS. That is one of the surest ways to prevent users from getting hijacked without knowing it.

If you are developing any kind of client application where you control the certificate authorities, throw them all away. Use certificate pinning in the client and reject any connections that present a certificate other than your known, pinned, certs.

In a web application, keep an eye out for suddenly changing IP addresses. If the user's IP address for a session changes, terminate the session immediately and force the user to authenticate again. This is a common, if paranoid, measure. Alert the user that their IP address has changed. A security warning is sufficient. Most likely they would be getting this attack in a coffee shop or some sort of untrusted Internet connection, so you have to tell them MiTM may be happening and they should be on alert. Defending from the server is hard.

comment 12y ago · link · parent

If you have a captive audience, DNS, etc. can still be much more difficult. Think, malicious wifi hotspots where you can totally dominate everything about the victim's Internet access. But, generally, you are right, these tools require a certain level of access. I have never used one on an internal network assessment. I have done a small amount of arp poisoning on occasion, which you could then use a tool like ssl strip with, but my needs were different :)

comment 12y ago · link · parent

A few things for everyone to think about. This tool seems to be aimed more on the non-interactive side. There are several other good tools out there which do this, but most of them are not oriented towards performing software assessments. Webmitm does good for HTTP/HTTPS, as does Burp Suite (transparent non-proxy aware stuff). There are a lot of tools in this space. There are very few that will let you interactively debug non-HTTP(s) TCP and SSL.

I released a tool with a colleague back in 2010 designed for assessing non-proxy aware (mostly non-HTTP(S)) applications. It was aimed at getting those hard to reach TCP and SSL wrapped TCP apps that other proxies don't let you work with interactively. Mallory does the exact same on the fly cert generation etc. As does Burp Suite a professional grade HTTP proxy, that can operate in transparent mode. I much prefer Burp to webmitm for day to day work.

SSL Split also supports more NAT mechanisms than Mallory and most other tools (which just tend to be iptables/Linux aware). That is one of the real nice pieces of this code.

We did add in a few neat things into Mallory. SSH MiTM that, when it works, lets you open up your own PTYs on the back of the user's SSH session. A GUI that lets you do binary level regex to play with traffic on the fly. HTTP plugins along with a Chrome extension for hijacking sessions and some other fun things, which were mostly just for demonstration of what a MiTM proxy can do and be. Making a MiTM proxy protocol aware can be very powerful. Mallory is still a little buggy and tricky to use, but it has served me well in performing blackbox app assessments for many years.

http://bitexploder.com/BlackHat-USA-2010-Umadas-Allen-Networ... (Check this out if you want an overview of how to configure a system to support a tool like SSLSplit or Mallory)

https://bitbucket.org/IntrepidusGroup/mallory (reasonably up to date code, its not the easiest thing to set up, though).

comment 12y ago · link · parent

"In about 5 years" is often code for, "It is really cool, and it seems feasible, but I have no idea how difficult it really is."

Also, we have the basic capability for this now. Regular blood testing, etc. Get a physical. Get blood work every 3-6 months. Its just basic stats for your body. I do this. To me it is like checking the oil levels in a car. Why would you not collect this type of data for your body, which is arguably one of the most important "possessions" a person can own?

comment 12y ago · link · parent

Now that I think about it... I wonder if you could combine pull clean with copper/antimicrobial surfaces.

comment 12y ago · link · parent

I am curious how this compares to: http://en.wikipedia.org/wiki/Antimicrobial_copper-alloy_touc...

These surfaces have good properties and don't encourage any sort of resistances.

edit: I see Pull Clean is trying to get people to clean their hands more, but I also think it is not good to ignore an existing good strategy for eliminating germs in one of the dirtiest places (door handles) in a hospital. I am wondering how well studied this is and if it results in a cleaner environment in a hospital setting compared to installing the copper surface handles everywhere.

comment 12y ago · link · parent

It depends on your level of effort when running. I can only provider you anecdotal evidence for myself and from the author of the excellent: http://www.amazon.com/Lore-Running-Edition-Timothy-Noakes/dp...

Basically, if you are well adapted to running and it does not take a lot of mental effort to run, you aren't really draining your "bucket" of mental energy for the day very much, so you get the positive effects. However, if you go into a place where the training takes a high degree of concentration (say, running easy, but a lot), or by running very hard, this is a heavy cognitive load task that requires much concentration due to the pain, etc.

So, basically, its the same as walking for a lot of people. As long as you are in a reasonably comfortable zone where you can think, it works well.

comment 12y ago · link · parent

I just have to say, for a long time, I have read sentiments like yours. Namely that, because the government has the big arms, they can win a fight against a civil militia. I would argue that we need to look no further than the middle east and how intense urban warfare really is to see that big weapons don't help. When you can't reliably root out the enemy force from the civilian force it is very hard to apply your big weapons. When the enemy eschews the Internet and uses traditional couriers (like the ISIS leader), they can be very hard targets. All that technology and weaponry, but you still need somewhere to aim it. Look how long it took to get OBL. It would be a brutal civil war. Brother against brother again, if it ever happened at scale in the US.

comment 12y ago · link · parent

Except the healthcare MSFT has is probably way better than anything you will get on the individual market. So you aren't in the terrible position you were before ACA, but you are still in a less good position.

comment 12y ago · link · parent

Here is the thing. Stoicism as it was taught 2000 years ago was extremely bound up in its "providential" and deity focus. Not as unpalatable as some of the more direct monotheistic religions, but depending on your teacher stoicism was still on a scale of pantheism to direct theism. (Marcus was very pantheistic and deemphasized religion, Epictetus was much more vocal about the theistic elements). As a modern reader a lot of ancient philosophy is like that. It has elements that you have to excise. So ancient philosophies are not really plug in play for a modern rationalist.

Basically, I think you have to start by writing things down and learning about the elements of these ancient, and modern, philosophies to see the sort of systems they put in place to deal with every day life events and exceptional events. How should I think about X? And some very obvious patterns will emerge. Some elements of stoicism may be difficult to employ and Stoicism in general is a hard to follow (fully) philosophy. The key point Epictetus had was that very few of us have the ability to follow Stoicism (or any coherent, but challenging) philosophy to its fullest. However, we should still endeavor down this path of "progress". This is why Epictetus has stayed so popular. He didn't advocate perfection of philosophy, merely that you work at it.

Which brings me to my final thought for you to answer your question directly: write it all down. For example, Stoicism has a lot of great elements that resemble modern psychology CBT (Cognitive Behavioral Therapy). So you pull the elements of ancient philosophies that work, you augment it with snippets like this Less Wrong articles various things. And you write your own coherent philosophy of life. And then you work at following it. It is pretty easy to lay down ideals, and pretty hard to stick to them. So you have to work at it, almost every day. You have to work on mindfulness and staying present and ensuring you keep your philosophy in mind in every day situations and exceptional situations. And, and this is where it gets tricky if you have trouble with non-empirical elements, you just have to believe your philosophy works. You have to believe it enough to follow it, even if you can't explain all of it. Science has spent the last 2000+ years catching up to things the ancient greeks found to work.

Much like a running coach can't really tell you WHY, exactly, everything he is having you do is working, it just does. Physiology has slowly been providing more and more detail, in the mean time running coaches have learned through trial and error how to train very efficiently. Some day we will probably have an exact explanation for the mechanisms of physiological improvement. Until then we can use our very good heuristics. I would argue it is the same from psychological perspective. It is close enough. Trust in your system and intuition and work to make it better and progress as a human being. There is no "perfect system" for everyone, but I think we could all agree on some pretty broad ideals that count as forward progress as humans :)

comment 12y ago · link · parent

Wild conjecture. Most of the guys on CERT have a security clearance. This talk may have been viewed as crossing streams that he could not cross. He likely had to get the talk approved by whoever manages his clearance to ensure his talk is not leaking secret information. Someone further up the chain may have caught wind and pulled it.

comment 12y ago · link · parent

I think another key factor with a lot of modern unhappiness is that, as the article notes, money does not correlate to happiness as long as you are above the poverty line.

We have lost the art of teaching people how to have a philosophy of life. We teach people how to have a craft. We teach basic morals. In religious households you may even be taught a pretty comprehensive "life philosophy", but it is often underpinned by many practices that defy rationality, and I think, lead many to unhappiness.

A few years ago I stumbled on some pretty interesting reading about Stoicism and I have since read much of ancient greek philosophy and a bit of more modern stuff like Kant. It still sort of blows my mind just how insightful the ancient greek philosophers were about human nature. One of the key principles of Stoicism that has an analogue or similar set of features in many other philosophies is that it is essentially not things that happen to us that cause us pain/grief/sadness/unhappiness but our judgement and reaction to those things. It seems a little trite in a short post like this, and I can't sum up something as complex as an entire school of philosophical thought, but it has worked well for me.

I have been in conversations where life philosophies like Stoicism and other related ancient greek philosophies get dismissed out of hand. Only to have a conversation wind over our current empirical approach to happiness. This less wrong article is /exactly/ what I call this empirical approach to happiness. Study all of the correlates, take all the best modern science about which behaviors yield the most happiness and which yield the least happiness and optimize accordingly.

Yet, 1800+ years ago, ancient philosophers identified many of the same principles articles like this are encouraging us to apply to our lives. What is missing from this article, and I think that can often cause many people to fail at sticking with a plan, is a coherent and binding strategy for all of this disparate "strategies for happiness". The ancient philosophies are not perfect, us moderns have learned a thing or two since Socrates and Epictetus, but their insights on the human condition are too keen to ignore. We know a lot more about genetics, and I have witnessed the ravages of deep nearly incurable depression on my family. Even the ancient stoics knew of depression and how it could destroy rationality of the most adept philosophers. Outside of these parameters, I would argue, strongly, that we could all live with a little more Socrates and Epictetus in our life and a little less religious extremism and modern consumerism.

And this brings me to my main point, without a rational, modern, and scientifically palatable life philosophy for how to think and feel about /everything/ it is very easy to put yourself into negative emotional states. I have found with a system to judge and evaluate emotions, and a keen understanding of the basic tendencies of my nature, I don't need a lot of empirical scientific knowledge to stay happy, though it does inform my approach.

When I read your post it made me think of myself and my old strategy of decreasing pain/bad moments and increasing good moments where good feelings are more likely. Now, I proceed in a manner as I see fit and I simply accept that much of my feelings are up to me and that jealously, sadness, and anger are just my judgement or feelings about something. I have also, often found, that when properly analyzed, I am not truly sad about a situation, merely that my judgements were wrong. I have definitely embraced many stoic principles into my life, and when I continue to work at maintaining and improving my understanding and ability to apply the principles I have adopted, I stay very even keeled, neither greatly happy or greatly sad. Content. I try to stick close to my baseline and take joy in every day life (since most of life is every day life) :)

comment 12y ago · link · parent

90%. Native speaker. The non words were gems, blurishness... why did I say yes to that?

comment 12y ago · link · parent

For someone who just wants to doodle and play around, while still learning the fundamentals, what resources would you recommend?

comment 12y ago · link · parent

I have traveled a lot. I have met small minded bigots all over. I grew up on a moderate sized city in the deep south. There is still a very small population of bigots in almost any rural area. No need to down play it, this is a very small amount of the population. It is still a problem, to some extent: (http://www.dailymail.co.uk/news/article-2428103/Majority-Ame...). A few more generations and people won't even have living memories of Jim Crow. It takes time to heal wounds like this and that is very certainly the trend (improvement).

comment 12y ago · link · parent

I have lived in Georgia all of my life. It is fine. Cases like these are outliers and can happen anywhere. Look at what happened in Illinois when someone recorded a cop with a helmet cam. These types of generalizations have no place on HN.

comment 12y ago · link · parent

I think you are mostly correct. That is why some people call it an "issue", while others refer to it as a "vulnerability". I personally don't think it is a real vulnerability, more like a quirk.

comment 12y ago · link · parent

It is a non issue, honestly. This issue was known about as early as 2011. You can only modify non-essential pieces of the transaction, but it does change the overall transaction hash.

These poorly coded exchanges were looking for an exact hash match to pop up on the block chain, instead of looking for the deposit/address.

The actual security of the system is not really impacted at all, and the core Bitcoin clients cope fine with this. The exchanges may have put themselves at risk, but that is on them.

comment 13y ago · link · parent

Came to this thread knowing tptacek would be here, discussing what a terrible idea this was. Got moxie and tptacek. Was not disappointed.

This is effectively a me too, but as someone who has spent considerable time researching, understanding, and explaining this problem to customers, let me just say it is a very dangerous thing to do (try to implement a "secure" system on top of JS Crypto in the browser). Moxie and Tom are completely correct and I cringe every time I see one of these projects.

And if you aren't convinced after reading this thread: http://rdist.root.org/2010/11/29/final-post-on-javascript-cr... start here. He covers the topic exhaustively. I feel like anyone arguing about if this is a good idea should do some research and come to the discussion informed. Nate wrote this article over 2.5 years ago.

comment 13y ago · link · parent

This is a good point. The interesting there here is the raw level of information you need to have to even hope to do something new. From a period, say WWII up to when Shannon was just doing his seminal work, you could think maybe a little on a fairly broad area, and maybe come up with something new. Now, as with many areas of academic thinking, you have to learn so much just to get to a point where you can advance a really small piece of state of the art just a little bit.

I think a lot of real math and academic work follows this pattern, and it is the reason one has a right to be skeptical, or even dismissive, of someone doing something like this if they were to present it as a serious work. "Here, try to break this". It is great for someone to learn the true scope of their ignorance, but at the same time, it is also so unlikely you have done even the tiniest novel thing that it is almost always OK to dismiss it out of hand.

Cryptography is really just an applied branch of math/information theory. Things that work for advancing the state of art for math are generally the same tools that work for advancing the state of art for cryptography. In the raw, pure and abstract sense. In the practical world, where you have to have real bits on real physical things, the attacks are myriad and the innovators in that space often need minimal training in cryptography (relative to someone doing the theoretical work).

comment 13y ago · link · parent

It, more or less, has a separate "Fuzzing Template" system which it uses to generate the brute force test cases. It was never meant to rise to the complexity of Sulley's fuzzing system. I wanted an in between complexity for the dumbest fuzzing and something completely flexible like Sulley and Peach. To solve that 80% problem of, "OK, I just grabbed an HTTP request, let's turn it into a quick and dirty fuzzing template." and from that, "And make sure it runs really fast on a single machine". In the time boxed assessment world you rarely have time to do all that you would like so this seemed to be a reasonable solution.

I will put it up at http://github.com/bitexploder soon (a week? Maybe two?).

The beauty of the "fuzzing engine" I built is that there is nothing to it really. You put in "scriptlets", which are really just small bits of Python that generate lists or sequences, and it combines all of them. My goal was to just write up a lot of the common HTTP fuzzing scenarios (integer sequences, alphabetical sequences, demonstrate common encoding and other scenarios giving you a simple list of things you can copy/paste/modify into a template. And then it runs, logging it all into a SQLite database.

comment 13y ago · link · parent

It will be. It has languished for a very long time, but I have resolved to get it out the door soon. I will put it up on a github repo (https://github.com/bitexploder) so watch there.

comment 13y ago · link · parent

Toy project: an HTTP(S) brute forcing tool using Python as a templating language. Why is it cool: high performance using async IO, powerful templating for Python programmers, very easy to take HTTP requests and turn them into a fuzzing template that mutates request in a combinatoric fashion. Similar to features built into Burp proxy for those that are familiar with it.

Real project: A system that will help organizations understand their overall, and application, security risk and manage it across time. Why is it cool: because security is hard and this will make it easier in a non-snake oil fashion. Many organizations are flying blind about their actual risk. A good view of your risk can help you prioritize security budgets.

comment 13y ago · link · parent

I don't have time to analyze it carefully, but you have created a stream cipher. It is actually quite fun to implement ciphers and learn about all of the various attacks. If you are to be serious about this you should really not start from a pure product of your mind, but learn about the latest and greatest techniques. The academic field of cryptography doesn't move /that/ quickly, so it is quite reasonable to keep up with it if you are passionate about it. You can do much better with just a little knowledge about basic attacks. You can basically keep designing algorithms that fewer and fewer people can break until you reach the point where no one can break it with known, modern, academic cryptanalytic techniques. And when you get there... you might be a Cryptographer :)

http://en.wikipedia.org/wiki/Stream_cipher_attack -- in particular, the period of your key stream is very weak. Also, without an IV, you will be in trouble.

Essentially, you need to take a key, and an IV, and feed it into your magic box (algorithm) and all that should come out is an incredibly long random string that does not repeat for a very, very long time. The shorter the period the worse off you are. I can't be sure, but I think you have a predictable, short period.

Even more interesting, read up on RC4: http://en.wikipedia.org/wiki/RC4 -- there were small but detectable biases in the initial part of the key stream, which allowed an attacker to break the algorithm. The solution was to advance the key stream a bit to discard the initial, biased part.

And thus we get to the hardest part of cryptographic algorithm design and why these exercises are so hard. It is very easy for someone to build an algorithm they can't break themselves. Obviously, you did everything you knew how to do to prevent it from being broken. It might even take an experienced cryptographer a while to break it (the key stream bias in RC4 was not found for a long time). Check out some of the WEP attacks.

Another thought for you: http://www.rickwash.org/papers/stream.pdf -- just how easy it is to be wrong. Page 8: If the swap operation of RC4 is omitted, the keystream becomes cyclic with a period of 2 n+1 -- very small changes can introduce non-obvious periods, etc.

Final thought: check out how WEP got broken. Stream ciphers are hard. This is why it is often very good as an educational exercise to write your own ciphers (I have done it), but you sort of do it once and either decide to get good at it or realize it takes a LOT of knowledge and it is better to just know the attacks and not invest a lot of time in it.

Anyhow, hope you had fun with this. Read up on the various ways stream cipher design can be broken, and check out how AES can be used as a stream cipher. Not sure I had a point, precisely, just wanted to share some thoughts having seen a dozen or more of these crazy algorithms in use in live code meant to protect truly sensitive data. Some programmer always thinks he is clever and ends up creating some XOR cipher (I know that is not you as you have the right goals, in my mind, for doing this).

comment 13y ago · link · parent

You may find this interesting: http://www.digicert.com/internal-names.htm (sunsetting of internal name certificates)

comment 13y ago · link · parent

That alone won't address all of the concerns. Another study they did, related just to their gTLD stuff, was to see which dotless name queries get leaked to the root servers. This name collision report is quite interesting and addresses the question of which names are probably in common use: http://www.icann.org/en/about/staff/security/ssr/name-collis...

Anyhow, our research and testing (I am one of authors of one of the studies mentioned in the posted article) found that the issues found with SAC 053 have the potential to be much more wide spread. There is also a scary problem called universal XSS.

There were no real smoking gun security issues, so you can make a pretty decent argument about the security impact not being too great (we had many such debates internally), but we are talking a core Internet system. The namespace collision issue is huge.

comment 13y ago · link · parent

Hi. I am one of the authors of (http://www.icann.org/en/groups/ssac/documents/dotless-domain...) this report mentioned in there. Our study included a much broader scope than SAC 053 mentioned in the article. The idea was to take a very broad, holistic, view of the key infrastructure and systems on the Internet and determine the risks dotless names may pose. How would behavior be different with dotless names, etc. Our report basically answers your question, I think, so I won't answer it here :)

comment 15y ago · link · parent

Hello. I am one of the main authors of Mallory, the tool used to perform the MiTM in the linked blog post. I just updated our Mallory home page a bit (http://intrepidusgroup.com/insight/mallory/) to be more helpful. If you have any questions on running Mallory let me know.

Mallory does a lot of MiTM things and is primarily a testing tool we use to break mobile applications. The best feature that is hard to find elsewhere is live TCP stream pausing and editing.

We will be releasing a new version at SOURCE Boston next week that beats the pants off of the current "stable" version in terms of usability (the new version is the head on our bitbucket repo). :)

2429.

Attack Scenarios for RSA SecurID Compromise(intrepidusgroup.com ↗)

3 points · by bitexploder · 15y ago · discuss

comment 15y ago · link · parent

We came up with different results and some more interesting items in the top 25 (link is to our top 100): http://intrepidusgroup.com/insight/wp-content/uploads/2010/1...

For instance, our #4 was lifehack with 861 results. We also came up with different counts.

It is probably worth comparing our methodologies and results: http://intrepidusgroup.com/insight/2010/12/gawker-des-crypt-... if you are interested in this.

edit: Amusingly, lifehack was the only password in our top100 missing from the linked top250. Given more time I am assuming lifehack would have dropped out during Duo's crack as a popular password since it is 8 characters and lower case.

Jeremy

1
7778798081