1,490 karma · joined Feb 18, 2014 (12y ago) · 369 submissions
comment 10y ago · link · parent
> ... the Mirai botnet was at about 550,000 nodes, and that approximately 10 percent were involved in the attack on Dyn (from Level 3 CISO) [0]
Something really doesn't add up there - even if it turned out 100% of infected hosts in the Mirai botnet were targeting dyn (ie: 5.5 million nodes) - that still is a fraction of the number dyn is claiming.
[0]: https://threatpost.com/mirai-fueled-iot-botnet-behind-ddos-a...
comment 10y ago · link · parent
They reflect what the manufacturers will offer the warranty until. A quick google search suggests about 2 petabytes of writes is the max you can get on a samsung 850 before it completely fails (and after 1 petabyte you will have many failed sectors and data corruption starts creeping in)
At the same time, I bought my S3710 used and when I got it, it had almost 8 petabytes written and it's still just like new.
> Have there not been some relatively large providers using consumer SSDs in the datacenter successfully for some time?
Yes, that wouldn't surprise me at all. Like I said, for many workloads, consumer SSDs are acceptable. But that doesn't mean enterprise drives are a scam.
comment 10y ago · link · parent
Define perform. But short answer, lots.
To be fair, consumer SSDs these days are pretty solid, and will perform great for most workloads - even many workloads which enterprise drives would be used for.
The big difference though, is with extremely heavy write workloads. The endurance of enterprise SSDs in terms of how much data you can write before the drive will fail, is a couple orders of magnitude greater than consumer drives. For example, I have an 800gb Intel S3710 SSD. It's rated to handle 10 DWPD (drive writes per day) - meaning that one could write 8,000 gigabytes of data a day, 365 days a year, for 5 years (~17 petabytes), and the drive will still be chugging away just fine.
A 1TB Samsung 850 Pro (which has some of best endurance of consumer ssds), on the other hand is only rated to 300 terabytes of data written. So the enterprise drive has a 60x improvement in endurance.
comment 10y ago · link · parent
I agree with you that building an entire OS to interface with hardware without using _any_ unsafe code is, by some definition of the word, impossible.
However that doesn't mean you must limit yourself to unsafe languages for the other 90% of the operating system code.
comment 10y ago · link · parent
> If you start with a 6 disk RAIDZ2 and want to add a couple more drives, you can't. The only way to add capacity to the pool is to add an entire new vdev.
This is mostly true, and in many situations for all practical purposes is true. Not fully understanding this recently cost me a few hundred dollars (2x 8TB external drives) when I needed to expand my 4 disk raidz2 to a 6 disk raidz2.
However, what _is_ possible is expanding a pool by incrementally replacing drives with larger capacity equivalents. This wouldn't work in my situation as I already was using the largest consumer drives available - but the next time I need to expand in a few years it may be a possibility.
> ... expandable file system that handles parity/erasure coding as well as bitrot that can be used right now
Unfortunately I believe this to be the case. However in practice, so long as you know up front your data store is not expandable, it's fairly easy to work around without it being too much of a hassle. If having two zpools when you need to expand is a burden for your use case because the data necessarily will be partitioned across pools (ie: in multiple directories), there are tools that will present multiple filesystems as a single mount point to linux.
Alternatively, mirrored vdevs [0] as opposed to a classic raidz2 configuration are much easier to expand, as you only have to replace 2 drives to expand your total storage space (a single vdev) as opposed to having to replace all of your drives with higher capacity drives as with raidz2.
> and Ceph might be more usable
After all that rambling about zfs, the main thing I wanted to touch on: I'd caution most people to not use ceph unless you already know you need it. For the average user, it is introducing so much unnecessary complexity that will just create future headaches when using it in a non-distributed manner (if zfs is an alternative, it must be non-distributed). Which isn't to say ceph isn't useful, it's just built to be optimal at solving a slightly different problem than a filesystem on a single compute can solve.
[0]: http://jrs-s.net/2015/02/06/zfs-you-should-use-mirror-vdevs-...
comment 10y ago · link · parent
[0]: https://blog.didierstevens.com/2010/03/29/escape-from-pdf/
[1]: https://thestack.com/security/2016/06/09/pdf-exploit-found-i...
comment 10y ago · link · parent
It is possible to significantly optimize that number [0]. Not that binary size is not an issue, but rather 2.4mb vs. 4kb is not an apples to apples comparison
[0]: https://lifthrasiir.github.io/rustlog/why-is-a-rust-executab...
comment 10y ago · link · parent
In my experience, Google support is _excellent_ for their paid products.
comment 10y ago · link · parent
For example with modulo, I feel like I use it quite often, relatively speaking. Somewhat contrived example of usage on the web side of things:
Let's say you're building a grid system that will have an unknown number of items. The grid is 12 columns wide. In the last row, any items that otherwise would be empty should instead have a placeholder item displayed.
Given an arbitrary array of items, how many additional placeholder items should be included in what gets rendered?
const colWidth = 12
const remainder = items.length % colWidth
const numPlaceholders = (remainder === 0) ? 0 : colWidth - remaindercomment 10y ago · link · parent
It's not robust and won't handle edge cases gracefully, but I've used it for a few hundred PDFs and they all worked.
The big downside is the slideshare slides are images, so the PDFs aren't searchable - they are just images.
comment 10y ago · link · parent
comment 10y ago · link · parent
> Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "https://news.ycombinator.com". Protocols, domains, and ports must match.
When executing
window.opener.location = 'javascript:alert(1);'comment 10y ago · link · parent
This is true, and is a vulnerability I have been looking at for a while now, though I've not actually seen it exploited yet in the real world. For anyone interested, there are some pretty interesting exploits involving pages where an auth token is in the querystring and thus sent in the referer field by the browser. Also, consider what happens when you use an alert() in javascript to yank context back to the now attacker controlled tab...
> Or execute some JavaScript on the opener-page on your behalf…
Not true, this implies the "attacker" can run javascript in the context of the original page. They can only run javascript after redirecting the original page to one they control, so it's not like they can run code on the facebook.com domain, which would be a _huge_ exploit.
comment 10y ago · link · parent
> This work was supported by grants to T.W. and Y.S. (NIH R01MH091801, R01EY019466, and NSF BCS 1539717). This work also involved the use of instrumentation supported by the NCRR Shared Instrumentation Grant Program and High-End Instrumentation Grant Program (specifically, grant numbers S10RR014978, S10RR021110, and S10RR023401). This research was carried out in part at the Athinoula A. Martinos Center for Biomedical Imaging at the Massachusetts General Hospital, using resources provided by the Center for Functional Neuroimaging Technologies, NCRR P41RR14075. Part of this research was also conducted using computational resources and services at the Center for Computation and Visualization, Brown University. [0]
[0]: http://www.cell.com/current-biology/fulltext/S0960-9822(16)3...
137.
NPM Package Hijacking: From the Hijackers Perspective(medium.com ↗)
4 points · by nmjohn · 10y ago · discuss
140.
Managing Nerds (2011)(randsinrepose.com ↗)
2 points · by nmjohn · 10y ago · discuss
comment 10y ago · link · parent
Agreed
> It makes perfect to block repeat offenders because they might get lucky
No, just no, please don't spread this nonsense. There is no such thing as "lucky" when the probably being discussed is 1 in (2^4096 - 1).
> they might be exploiting an RCE you're not aware of that takes multiple steps
I'll take my chances. If unauthed RCE exists in SSH (regardless of number of attempts required) there are far more serious implications than any server I manage. Additionally, I'm curious if you have an existing CVE where this kind of exploit has ever been discovered.
> they could be trying to DoS that server by filling the logs and thus your disk ... this isn't too hard to imagine
Hard to imagine? No. have I ever actually seen in the real world? Also no. Even if one server happened to be dos'ed by this, not a big concern, that's why you run multiple redundant servers behind a load balancer. The only viable attacks would be random in nature since attackers have no idea what the IPs of your actual app servers are. (And if someone can mount an attack that can determine them, you probably have bigger problems then a dos attack from ssh logs)
All in all, I feel like this just strengthens my original point, of viewing security as a checklist is a dangerous approach, one needs to actually understand what they are doing.
I'm all for layered security, but the problem with using it just because "why not" is that this methodology leads to an environment where there is so much "stuff" nobody knows what is secure, what is not secure, and what strange dependencies were the only reason something was secure in the first place. As far as security goes, everything should have a well-defined purpose.
comment 10y ago · link · parent
> Is TLS1.2 the only supported protocol?
Do you know what the implications are from actually implementing that? One probably should do additional research before making that decision.
> Have you ensured that your content cannot be embedded in a frame on another website?
X-Frame-Options isn't the only way to achieve that.
> Have you ensured that the Internet Explorer content sniffer is disabled?
This really is only relevant if your site is hosting untrusted content.
> Are you using fail2ban to throttle ssh login attempts?
> Have you disabled password-based login over ssh, and only allowed key-based login?
The first really is of debatable value if the second is also used.
> Do forms set a cross-site request forgery cookie?
Cookies are not the only way to do this. More common, in my experience, is including the csrf token in the dom (either in a form field as a "hidden" input or as a meta tag)
> Do you have an account recovery flow? Delete it immediately.
Lol.
It's a great checklist for someone who knows what every item on the list is and more importantly, _why_ it is on the list - but it is not something that should be blindly followed.
comment 10y ago · link · parent
> On our production frontend machines, SSL/TLS accounts for less than 1% of the CPU load, less than 10KB of memory per connection and less than 2% of network overhead. Many people believe that SSL takes a lot of CPU time and we hope the above numbers (public for the first time) will help to dispel that. [0]
[0]: https://www.imperialviolet.org/2010/06/25/overclocking-ssl.h...
comment 10y ago · link · parent
comment 10y ago · link · parent
What you may want is a catch-all email - which lets you do @domain.com -> nmjohn@domain.com (where is everything besides already defined addresses) - that way you can make up emails on the fly without having to setup the alias beforehand.
I've had that setup for 5 or 6 years now, and it works extremely well. A handy side-effect of this is it makes it easy to see which companies sell your email address to spammers when you included the name of the original company in the email you register with
comment 10y ago · link · parent
While true, incorrect bgp announcements happen all the time, I think this is one of the cases that Hanlon's Razor probably does not apply: most of the time they are not a result of people messing up - rather the bad announcements come from spammers/malware spreaders needing new IP space because their current (likely hijacked) IP space has gotten blacklisted and is no longer effective.