Better HN
topnewbestaskshowjobs
Log inSign up

LinuxBender

57,650 karma · joined Jun 16, 2015 (11y ago) · 19,241 submissions

I am not for everyone. To ignore me in uBlock Origin, add to "My filters":

   news.ycombinator.com##tr.athing.comtr:has(a.hnuser):has-text(/\bLinuxBender\b/)
For HN usage questions see https://github.com/minimaxir/hacker-news-undocumented for HN tips (not my repo)

    (\_/)
    (='.'=)
    (")_(")
Submissions

comment 9y ago · link · parent

I use it for my own sites, mostly for file uploading, forums, etc... We use them at work in simple cases where writing something in java or C would have been overkill. CGI will be around for a very long time.

comment 9y ago · link · parent

Gotta keep those hashcat farms in business :-)

comment 9y ago · link · parent

I agree. I used 4096 in the example just in case my great grandkids find this post. They will have Quantum implants.

comment 9y ago · link · parent

Does this prevent reproduction of the mosquitos, or of the disease? If mosquitos, will this have a negative impact on bats? My bats eat mosquitos and moths, but there are not many moths any more.

comment 9y ago · link · parent

Even SHA512 and bcrypt, totally uncrackable! /S

comment 9y ago · link · parent

You can have a GitHub specific ssh key.

  ssh-keygen -q -t rsa -b 4096 -N "passphrase" -C "mygithub@someaddress.org" -f ${HOME}/.ssh/.ghub
then in your ${HOME}/.ssh/config

  IdentitiesOnly yes
  Host github.com
    Hostname ssh.github.com
    Port 443
    User git
    IdentityFile /home/username/.ssh/.ghub
    ForwardAgent no
Not that it matters in this case, just sayin'.

comment 9y ago · link · parent

My point is, this is not a technical issue. S3 is a fundamental design flaw and/or not an appropriate location for sensitive data and/or a PsyOp. They are teaching people to put sensitive data that is one API mistake away from mass exposure.

comment 9y ago · link · parent

What numbers does your rig give using hashcat and your video card?

comment 9y ago · link · parent

They were being sarcastic.

comment 9y ago · link · parent

Is it possible that there isn't a climate problem? Perhaps we have served our purpose[1] and now the Earth is simply shedding us.

[1] https://www.youtube.com/watch?v=rld0KDcan_w

comment 9y ago · link · parent

15+ years ago, there were similar issues with people leaving directory indexing enabled with Apache. At least in those cases, people knew they were putting their data on a web server. And more often than not, there was at least logging of what was downloaded by default.

Now people are moving their infrastructure to the public clouds. With the flick of a single API call, you can expose the most sensitive data over HTTPS with no authentication and no logging. That seems to me worse than the problems of 15+ years ago. If I suggest ways to fix this, I will get responses with the word "friction", which was usually the reason people moved out of their datacenters to begin with.

Is there a practical solution to this? Could AWS do something better?

comment 9y ago · link · parent

Have you also tested on Vultr and Linode?

comment 9y ago · link · parent

I just have to put faith in two ladies and their cup.

comment 9y ago · link · parent

Ah, I was not aware it would be January. Then for now the targets would have to be specific DNS records.

comment 9y ago · link · parent

Out of curiosity, who put him in that position?

comment 9y ago · link · parent

I put up an extremely offensive (yet legal) image or video, then link to it from a conservative forum. I then log the date/time and calculate how long, if at all, my server remains online. If it can handle the DoS or DDoS, phase one is good. If the provider doesn't cave to demands to remove the site, then phase two is good. At that point, I would call them a good server provider.

If you are referring to benchmarking, I might do a few quick tests with bonnie++ and openssl speed tests for the server itself and some iperf3 tests for the network throughput.

comment 9y ago · link · parent

I don't know if LetsEncrypt would issue that, even if you control it. That would be a good exercise to validate if there is an "easy mode" for state sponsored fun.

I've read that browsers are said to block such wildcards, but I don't know to what they are referring. I create wildcard TLD self signed certs all the time. I've never had one signed by a proper CA, so I can't tell you if the browsers have any logic to ignore them.

comment 9y ago · link · parent

That could certainly be useful in the follow-up investigation and forensics. Hopefully our attacker did not spin up those VM's using a burner card or stolen CC and proxies.

There isn't anything magical about selectively targeting domains. One simply creates multiple recursors and sets the upstream forwarder to the proper IP's of the original root servers. Then one adds zones for the domains or individual records they wish to modify. Unbound DNS is great for taking over individual records. I use it for this very purpose to block advertisements and trackers. In this case however, we are just acting as a root server, so there isn't much to take over. We just point the victims to ourselves for the domains we wish to hijack. We could then have a second level of recursors to perform the above selective attacks.

comment 9y ago · link · parent

This isn't specific to your question, but I have VM's that have 6 logical processors. I use taskset to set the affinity of all OS processes to logical proccesor 0. This doesn't work for some kernel threads, but it works for most processes. I then give haproxy a number of logical processors, or balance based on what is running on that VM.

On physical hardware I would use NUMA regions per set of applications as well to optimize the use of CPU cache and get lower latency to memory, but the overall memory availability will be reduced. This is done on some latency sensitive applications.

You can do similar things in Windows. There is probably a way in Mac, but I have never tried.

As others pointed out, there are many cases where doing all of this won't help, so it really depends on the problem you are trying to solve, or the optimization you wish to accomplish. There are certainly no one-size-fits-all solutions.

comment 9y ago · link · parent

If you control the root DNS servers for .io, you can simply not answer the DNSSEC queries. Many resolvers will fail open.

HSTS requires the site is HTTPS with a valid cert. If you own all .io, you can use LetsEncrypt to get that for free. They now even support Wildcard Certs! :-) That said, you would have to choose your targets carefully and/or load balance your requests to LetsEncrypt. There is a rate limit. There are browser plugins that can tell you if a cert just changed, assuming you have been to that site prior.

Then there is Public Key Pinning. This would be great, but I suspect the number of big companies implementing this are low. I don't have numbers, but you can test your favorite sites in Qualys[1] or using testssl.sh[2] that only depends on openssl and bash.

You could proxy all requests to the real root servers for .io and only become authoritative for the ones you wish to target.

Given the small number of zones, I think a modest server could keep up, or you could balance the load on a bunch of VM's. It may take a while for anyone to notice. I am curious actually, how many fellow geeks have nagios/sensu alerts that would tell them if the root server IP's changed.

All of this said, there are BGP attacks you can do that accomplish the same thing for any TLD and the IP's wouldn't even have to change. Only more advanced monitoring tools that keep an eye on route path might notice, but probably would not alert anyone.

[1] https://www.ssllabs.com/ssltest/index.html [2] https://github.com/drwetter/testssl.sh

comment 9y ago · link · parent

For non-commercial folks, there are a couple of VPS providers that provide Anycast support. I personally have not used them, so I can not speak to how easy they have made it to configure.

I agree with your concerns around letting a CDN see traffic. In my workplace, we are not allowed to pass dynamic traffic through CDN's for that very concern that our customers share with you.

comment 9y ago · link · parent

CNAME discussions in this article are specific to their site. In general, you can load balance just as well with A or CNAME, apex or sub-domain. It's only when you get into artificial technical limitations set up by a hosting provider or CDN, that things get messy.

CNAME's guarentee the end users will always do at least 2 DNS lookups. Depending on their resolver config, this will mean they will likely hit 2 or more resolvers. This increases their chances of hitting a bad one and the DNS not resolving.

A records can be load balanced, have full fault tolerance and much more. The modern way to accomplish this is Anycast. Instead of relying on DNS for failover or load balancing, your IP is advertised in different parts of the internet and the traffic is sent to different datacenters, that each may have their own load balancers, caching devices, WAN accelerators, DDoS mitigation and more. In fact, nearly all major DNS providers are doing this today. While you may have 3 or 4 IP's in your zone, those IP's actually route to different places depending on the requestors location.

TL;DR: Summary, just use an A record for Apex or sub-domain, set a really high TTL so a DDoS of your DNS is less relevant and use Anycast to optimize your traffic routing, load balancing, latency to the end user and availability.

comment 9y ago · link · parent

How do we make it more obvious to non technical people the difference between a DV cert and other certs, in a way they will completely understand?

I understand what the browsers do today and I don't believe this help protect people. It should be very clear what type of transport security is in use, along with a score and what type of identity has been verified and what that means. I honestly don't know the answer to this, but I do know the existing methods in browsers just doesn't give a clear picture to non technical people.

comment 9y ago · link · parent

I would agree that it would not be scalable or fair to LetsEncrypt to police all of them. Would it be feasible to maybe just police the top 50 or top 100 financial institutions?

comment 9y ago · link · parent

Fair enough, that makes sense.

I understand that there are about 17k certs with paypal.com in the name. Are there plans to try to prevent some of that in the future?

comment 9y ago · link · parent

Serious question. What does LetsEncrypt buy me that I could not get from having a knob in applications and browsers that lets me accept self signed certs?

To be clear, the reason I am asking is that historically a CA was intended to be a way to validate "who" you are talking to. LetsEncrypt is providing a signed cert that does not validate an entity. It just solves the self signed cert, which could also be solved in applications by having a setting to "Accept Self Signed Certs". Some apps and appliances already have this.

comment 9y ago · link · parent

I do not see any references to Thought Leader[1].

[1] https://www.youtube.com/watch?v=_ZBKX-6Gz6A

comment 9y ago · link · parent

Brain control via induction vs. brain control via keyboard and mouse vs. brain control via fob or joystick. It's all the same brain, you aren't fooling anyone. The owner of the brain and/or the hardware that is causing harm is at fault. They can sue the vendor if they believe the hardware malfunctioned.

comment 9y ago · link · parent

Even better, you can preheat your engine using heat lamps; or in the extreme cold areas, a thermal wrap that contains heating elements.

Using a heat lamp assumes you have a garage, or you might find that animals try to get warm using your lamp and may end up in your engine compartment.

Some large equipment even contain electric oil pumps with heating elements that can heat the engine and lubricate it as well. I have seen people modify their trucks to have this as well.

1
632633634
642