Better HN
topnewbestaskshowjobs
Log inSign up

hackercomplex

141 karma · joined Dec 11, 2015 (10y ago) · 88 submissions

Submissions

comment 10y ago · link · parent

I think that unfortunately you're mistaken. If all you do is sit and look at log files all day you can come off with this impression because you see so many scans go by, but that creates a bias in your thinking which doesn't line up with the facts.

A motivated attacker will always tend to try the "low tech" approaches first to rule them out as a first step because it it doesn't require as much sophisticated technical attention and in addition it's a well known fact that human beings are more often than not the weakest link in the chain of security.

It goes something like this:

1. enumerate the employees.. in other words build a list of all their work emails and try to obtain their personal emails and those of their spouses and children.

2. investigate the background of executives so that a compelling phishing email message can be crafted which looks like it originated from high up within the organization.

3. Send targeted phishing emails designed to bait people within the organization to visit webpages that exploit Adobe Flash attack vectors or other browser based vulnerabilities, or perhaps even lure them into installing a trojan directly.

4. after someone in the organization falls victim to the client-side attack, read their emails to learn more about the organization's structure so that your next phising attack can be more refined, specific, and compelling and can possibly utilize a real corporate email address.

5. Rinse and repeat until you eventually gain access to a developer laptop where you can grab production environment SSH keys. Now you own the network without even having to scan a single server and without leaving a trace in the log files.

comment 10y ago · link · parent

Developer laptop compromise is probably the biggest security risk that any startup company faces, because the developer laptop is an uncontrolled environment with a lot of "attack surface" which may have been previously compromised.

In my view there are emerging best practices in this area. There are two ways to reduce this risk and both are controversial:

1. Force developers to only develop software using an SSH terminal (by first connecting to a developer VPN via 2FA and then sshing into their secure development environment where may use tools like tmux, vi, and their programming language of choice to get the job done). In this scheme copying source codes or security credentials to a developer laptop is considered a violation and becomes a fireable offense no questions asked.

2. Require all developers to run a private USB-bootable linux desktop shell which is known to be clean. In this case they remain free to utilize modern desktop editors and code emulators (such as android simulator). It's even possible to setup secure persistence in these environments so that the developer's browser configuration, network/vpn config, dotfiles, apt installs, etc are stored on an encrypted filesystem on USB device. The reason why a USB image is preferred is because it's annoying to ask a new employee to repartiation her personal harddrive.

My suspicion is that as more of the tools developers need to rely on are cloud-based: (example: github, cloud9, jenkins, etc) we will eventually see these modern best practices against client-side attacks being adopted more broadly. The quality and reliability of hot-bootable ultra secure cloud operating systems has gone thru the roof over the past couple of years and I assume this trend will only accellerate due to the fact that Google Chrome OS continues to penerate more of the market and consumers are getting used to it.

TLDR: ssh keys existing on developer harddrives is an info-sec anti-pattern, they should only ever exist in system memory or in an encrypted partition on a USB stick.

comment 10y ago · link · parent

In my view the entire problem is that developers in general have been brainwashed into beliving that they are better off dealing with recruiters when in fact the best thing they could do for themselves would be to do their homework, that is, research companies that are hiring, figure out who to contact, and write a personalized introduction email.

If you do that then you have two things in your favor already..

1. you are cheaper to hire because there are no recruitment feeds associated with you.

2. you showed some initiative to zero them out, and you demonstrated that you have creative writing skills which are an important trait in software development

comment 10y ago · link · parent

"a period of disconnection, of feeling as if you have been abandoned by God, of not knowing how to get back on track."

^ that sounds to me a lot like a common "bad trip" on LSD.

comment 10y ago · link · parent

I believe that you can definitely wonder into the same territory through meditation. Some people even get there through athletics by pushing themselves really intestly. The experiences that people describe as "bad trip" can be found in the literature around buddhism, or even in the christian tradition if you examine "the dark night of the soul". There are also parallels to the more positive experiences.

comment 10y ago · link · parent

For all you fraidy cats read about "micro dosing" there is a whole community around it with some fascinating observations.

comment 10y ago · link · parent

Maybe this has already been asked, but the part that I struggle to understand is what about TX ? I mean is a smartphone going to have enough wattage to beam a message back to this drone ? If not then what's the plan for solving that 1/2 of the equation.

comment 10y ago · link · parent

How about figuring out how to advance Open Education in some meaningful way ?

For example: Would it be possible to create a YC branded online University which confers honorary degrees ? Even if the degrees are not fully recognized would it even matter so long as the professors carry enough weight ? I know this might sound crass but basically it might look better on someone's LinkedIn profile than a "recognized" degree, and perhaps over the long term the University's stats would be impressive since you could be selective.

Perhaps it can be scoped to CS post-grad only as a way to make it less controversial. It's not a very pie in the sky vision either.. just onboard some of the world's top college professors, rotate in unique "star power" professors (examples: Paul Graham, Eric Ries, Brad Feld, David Heinemeier Hansson, Bruce Schneier whoever has the time for a professorship), then build out the curriculum, the web IDE / screen-sharing / webcam platform. If it were me I'd have an emphasis on pair-programming throughout the technical bits because it's an exciting way to learn.

You could think of it almost as another accelerator program but without all the messy bits. This would allow YC to have more of the "full stack". Maybe there could be some kind of a VC-backed scholarship program for it.

You might end up biting the hand that feeds you (Standford, etc) but maybe they wouldn't look at it this way, either way that is how it goes with tech innovation.

Think about all those programmers who applied to YC who were executing brilliantly but who YC dismissed simply because the market conditions were not ripe for their particular startup idea. Now you can capture them in a different part of your funnel and maybe by the time they graduate they'll have a more palatable idea. In my view education has always been YC's core competency, the venture stuff feels more like a monetization layer to me, it's kind of a hack isn't it ? j/k

p.s. All jokes aside, I am merely a programmer, so I don't know if there is actually a market for this, but if it existed I'd probably apply

comment 10y ago · link · parent

>Do people, without the fear of not being able to eat, accomplish far more and benefit society far more?

Why not basic commodities ? I mean distributing significant quantities of corn, corn-meal, flour, rice, a wide variety of beans, dried fruit, beets, onion, millet, granulated garlic, etc. The stuff that you can make a vast array of healthy foods out of.

This eliminates much of the possability of waste in the system, and at the same time it doesn't expose the individual to legal and privacy complications that come with 'income'. It translates into money in people's pockets indirectly because now their family's food budget is dramatically reduced.

I think this is a more elegant solution but the reason why it's difficult politically is because it incentivizes individuals and families to put more time and planning into home food preparation. There are billion dollar advertising campaigns aimed at conditioning the exact opposite behavior which is one reason why it's probably politically untenable at this time.

Also I'd like to raise another point which is that I find it somewhat disturbing that a major startup community leadership organization is so interested in possibly attempting to influence the national policy around financial issues in a way that is so far removed from the technology domain.

Are you guys a startup incubator or a think tank ? In other words are you busy conducting research to churn out position papers designed to influence the national debate on non-tech issues ? If so then how transparent do you plan on being with founders, past, present, and future about this entire process as it evolves going forward ?

The reason why I believe it's a bit of a stretch to consider this a tech issue is because in my view the idea that "technology is eliminating jobs" seems to be a false premise statistically speaking. To me it's a debate centered around how "free trade policy" is influencing the global job market and how that has impacted the United States economy. I believe that in the US at least the tech ecosystem has created more jobs, a whole new economy in fact which didn't exist before. It's the non-tech jobs that are gone, but they weren't eliminated by technological innovation as much as they were dispursed globally in the wake of certain regulations.

comment 10y ago · link · parent

Does anyone know if an extremely controversial new peice of software was recently pushed ?

comment 10y ago · link · parent

As you point out there's definitely a learning curve with this tech, however there's also a learning curve with rolling your own versions of many of it's capabilities which is the alternative. I also personally find XML configuration files distasteful, but luckily I found that the default configuration was good enough for me to stand up a clustered "HA" environment with all the bells and whistles.

There are projects out there such as Torquebox for JRuby and Immutant for Clojure which attempt to wrap some of this configuration in a DSL which I think is really convenient.

It is true though that if you want to extend Wildfly you need to create a Wildfly module which can mean writing Java code. I look at this as being similar to how if you want to extend NGINX you have to be prepared to write your configuration in LUA or C. Unfortunately the JBoss community isn't as well documented as NGINX is right now, so realistically there is some pain.

Since my application didn't need to have Wildfly manage database thread pools on it's behalf I didn't feel the specific pain point that you mention.

Over the long term, when thinking about scale I enjoy knowing that there are companies like Redhat out there who provide support for this technology, but I don't anticipate ever needing to engage them. With this tech configuration is always the hard part but once it's up and running it's performance characteristics are predictable and the Undertow web server is in the top 5 on the latest benchmarks: https://www.techempower.com/benchmarks/#section=data-r11&hw=...

comment 10y ago · link · parent

In my view what we're really talking about here is PaaS. Every shop is left to implement a private PaaS on their own for the most part. There are software companies out there who specialize in helping teams deploy this kind of architecture for example:

https://pivotal.io/platform

http://deis.io/

both are open source technologies based on Docker that are gathering momentum and you can hire consultants to help you deploy either one.

I personally don't use Docker. The startup I'm building has chosen to standardize on the JVM for all application code so we leverage the JAR file as a kind of container. The Java ecosystem already solved the problem of zero-downtime deployments a long time ago so for us deploying can be as simple as shipping new jars file across the network.

Instead of using Docker to drive development we simply spin up development database/redis/etc instances in the cloud which automatically join a development VPN network. All of the non-VPN interfaces are automatically firewalled off. One nice advantage of this setup is that developers who have slow laptops are still able to work. I'm a big fan of this approach.

Check out Wildfly's "High Availablity" features if you're interested in one way that the Java Ecosystem can make headaches like zero-downtime deployment, HTTP health checks, monitoring, caching, and even load balancing disappear.. It'll deploy non-java code too as long as it's on the JVM. If you're a Scala only shop there are some great Scala-only alternatives available to boot.

comment 10y ago · link · parent

Well it looks like you're right I wasn't aware of how efficient COW forking is. I stand corrected

comment 10y ago · link · parent

I know they're native threads, they're lightweight compared to unix processes. You're trying to change the subject to CPU performance during context switch when what we were discussing in memory consumption.

The memory overhead of a MRI ruby process running on linux is much higher than the overhead of a native JRuby thread, they are apples and oranges, surely we agree on that point because you can check it via a simple ps aux command.

Perhaps I am mistaken, but from what I've read to run unicorn following their recommended guidelines you need to spawn at least 1 MRI process for every CPU core, but if your application blocks on IO rather than CPU during it's request cycle which is common then you will need more processes than CPU cores in order to handle concurrent HTTP requests. At that point you're wasting many orders of magnitude more memory than JRuby for every "unit of concurrency" so to speak.

by the way Kotlin looks interesting, thanks for pointing it out I was not familiar

comment 10y ago · link · parent

exorbitant! quite right

The overhead for a unix process is significantly more than a lightweight JVM thread. In some cases this memory overhead can prevent you from utilizing the smaller cloud instance types which are sometimes the most cost efficient.

Also with MRI you can't light up all 4 cores, or 8 or 16 without spawning extra processes which burn memory and that can make your server less cost efficient if your app can use the RAM.

comment 10y ago · link · parent

in the Ruby world people end up consuming more RAM when using the C based ruby (MRI) because in order to achieve concurrency they must scale with processes and that consumes an absorbent amount of RAM. With JRuby you can scale concurrency with native threads that have minimal memory overhead.

comment 10y ago · link · parent

I couldn't agree more, but I think you should add Clojure to the list. There's also advanced profiling tools available for the JVM platform.

For those who do use Rails the Torquebox environment is available http://torquebox.org/

TorqueBox 4's web server is powered by Undertow. Check out the performance benchmarks: http://www.techempower.com/benchmarks/#section=data-r9&hw=i7...

undertow edge 183,150 requests per second on the JSON benchmark

comment 10y ago · link · parent

Keep in mind that the AMP caching infrastructure will also be able to serve as a tracking platform because it records every single IP address. This effectively grants Google and associates a defacto monopoly in terms of an unblockable mobile tracking platform in a world where ad-blockers are becoming ubiquitous.

I think it's a smart move on their part actually, but what I assume will eventually happen is other providers will come along and provide a similar free infrastructure but without retaining logs and then everyone will migrate to that. Google will have gotten the ball rolling, and benefited for a number of years from the data, but ultimately people on the web prefer not to be tracked.

comment 10y ago · link · parent

I just went and dug up the material I was referencing, and the memoirs are from the third Balkan war of the 1990s.

Here brother: http://shtfschool.com/community/selco-one-year-in-hell/

This guy's material is genuine and it goes into great depth, but its only one example. The are other stories of course from this conflict that you can dig up which back up his account.

this video goes into some of his information about gang warfare. It backs up everything I was saying:

https://www.youtube.com/watch?v=g-pBbG3Q8uo

comment 10y ago · link · parent

You can do your own homework, there are well documented historical accounts. There are situations where a large city was cut off, for weeks no supplies in or out, the lights were off.. and the "shit hit the fan" for those people well before the shelling began. You can read for yourself how important the requirement to have at least a single firearm was for households.

comment 10y ago · link · parent

well everyone should be armed of course, and have gone through firearms safety training, but it's not just about the sheer number of guns it's also about their capacities but most importantly it's training that matters.

I definitely don't think that in order to provide security everyone needs an AR-15 or an AK-47 which is how some people over here think. Today in America the AR-pattern rifle (the semi-automatic civilian version of the familiar full-auto-capable M-16 or M-4) is the most popular model of rifle, with millions sold in the past decade. Virtually all of them produced in the past decade have abandoned the old M-16’s signature “carrying handle” rear iron sight for a standardized sight mounting rail, meaning that virtually every AR sold today can be easily equipped with an efficient optical sight. Firing the high-velocity 5.56×45 mm cartridge and mounted with a four-power tactical sight, a typical AR rifle can shoot two-inch groups at one hundred yards when fired from a steady bench rest. That translates to shooting eight- to ten-inch groups at four hundred yards.

Four hundred yards is a long walk. Pace it off on a straight road, and observe how tiny somebody appears at that distance. Yet a typical AR rifle, like those currently owned by millions of American citizens, can hit a man-sized target at that range very easily, given a stable firing platform and a moderate level of shooting ability.

But what a lot of people don't realize is there are a far greater number of scoped bolt-action hunting rifles in private hands in the United States. Keep this number in mind: based on deer stamps sold, approximately twenty million Americans venture into the woods every fall armed with such rifles, fully intending to shoot and kill a two-hundred-pound mammal. Millions of these scoped bolt-action deer rifles are quite capable of hitting a man-sized target at ranges out to and even beyond a thousand yards, or nearly three-fifths of a mile. In that context, the 500-yard effective range of the average semi-auto AR-pattern rifle is not at all remarkable.

I suppose what I'm getting at is that you don't have to break the bank to arm your society in an effective way. Your country will be doing just fine if most people simply have a bolt action scoped hunting rifle but what they really need is firearms training.

comment 10y ago · link · parent

There's ample evidence in particular if you study the Kosovo War outbreak there were situations where regions were cut off from supplies, power was lost, but yet there was no invasion or shelling. Ireland comes to mind, there are some examples..

comment 10y ago · link · parent

> Yet with "Statistically speaking hurricane prepping is much bigger deal in America than survivalism" you imply that 'survivalism' does not include hurricane prepping, so is not the same as the 'prepper culture' from the paper.

There is a distinction in America between prepping for medium to long term service disruptions, and preparing for a hurricane. The later merely involves nailing boards onto your house's windows then driving north for a few hours whereas the formed is commonly dubbed 'survivalism'. I should have been more clear about what I meant by the terminology.

> In that case, isn't the back-to-the-soil movement of the 1960s more similar to pre-WWII farming culture than the prepper culture, despite the lack of interest in weapons in that movement?

I think the back-to-the-soil movement of the 1960s is very similar to pre-WWII farming culture. I think that even in the 1960s statistically speaking wherever there's been farms and middle class in the United States there's been guns. I think that today tons of people who back in the 1960s would have been characterized as "back-to-the-soil" are being roped into the "prepper" category by a media blitz that wishes to discourage the transmission of those pre-WWII values to a new generation of Americans.

I think that all we're seeing here is a back-to-the-land movement by a generation that is growing up in a time where the spectre of 'terrorism' looms large. Also you can see it in the artwork and music, these younger generations were more likely influenced by Kurt Cobain, Henry Rollins, or Biggie Smalls than Carlos Santana or Jimi Hendrix, so naturally they're going to exhibit a little more 'hard core' tendencies when they do go back to the land.

> I appear to have been wrong, as I had no idea at the time that space aliens had been part of TV culture for decades, and it's been decades more without announcement.

Maybe for your generation it was space aliens and this generation has zombies and vampires, go figure. There do seem to be some ominous continuities between the two pop culture phenomenon, but that could just be my imagination.

> Do you have any idea of how may firearms (per capita) are needed for that? Because Switzerland, Sweden, Norway, and France are still in the top list of countries in per capita gun ownership. How many more will they need?

Thats the problem with trying to talk about Europe as a whole, there are several important exceptions, most notably the Swiss. You forgot the Czech Republic add them to your list.

> Yes, and Switzerland "The vast majority of men between the ages of 20 and 34 are conscripted into the militia and undergo military training, including weapons training", though they don't keep ammunition at home.

The Swiss have their shit together what more can I say.

> So plenty of Europeans have some experience in the military, at least for some countries.

I certainly didn't meant to imply that they didn't, I hope I didn't offend.

> In the Middle East these troops were frequently tasked with restoring order to urban areas exploding in internecine strife

>Now you're going on a tangent that seems little to do with pre-WWII farming culture.

> What sort of military training, and more importantly special forces operation experience, did your grandmother's family have, and how was it useful for their farm life?

my bad! Let me reiterate the point: In my view there is both a back-to-the-land phenomena and a prepper phenomena going on in the modern United States which are distinct although there is some overlap. The back-to-the-land movement is much much larger than the prepper movement statistically, but you don't get that picture from watching the TV.

The media doesn't want to acknowledge the back-to-the-land movement because it's not seen as good for business, so they try to paint everyone with a pickup truck as a prepper. In computer programming there is a movement towards "remote work". In the 1960s the status symbol for having made it in your career was having your own office secretary and a reserved parking spot, but in the modern era perhaps the new way to know you have arrived is when you are free to work from home... or even from the farm.

https://www.youtube.com/watch?v=y2AOhWGLAJY

comment 10y ago · link · parent

It's more like.. a disaster happens, so police response times have lapsed, dropped to days. Not everyone is stranded on their roof, tons of people have food but the real problem is that now heavily armed and well organized drug gangs are able to operate with impunity, and brutality, seizing whatever they wish (including the food)... It's a power-grab situation for a few days, or for however long the power stays off, or it would be, if combat veterans and ordinary Americans weren't so well armed.

comment 10y ago · link · parent

I see where you're coming from, but you emphasize a widely held stereotype about the 'american prepper' which I think A. isn't true, and B. makes it seem almost fatalistic, which is the idea of "every family for himself".

I think in reality what you have in the rural US are communities that are ready to band together in hard times.

Perhaps a more clear way to think about the situation is in terms of distributed computing and graph theory. As many of you know, in theoretical computer science, the CAP theorem states that it is impossible for a distributed computer system to simultaneously provide all three of the following guarantees:

Consistency (all nodes see the same data at the same time)

Availability (a guarantee that every request receives a response about whether it succeeded or failed)

Partition tolerance (the system continues to operate despite arbitrary partitioning due to network failures)

I think that some individuals in the United States (the ones who live in large metros) prefer to optimize for Consistency and Availability by living in populous areas. There are more firefighters, paramedics, and power company linemen ready to step up quickly to restore services in the event of an emergency.

People who live in rural areas in the United States are optimizing for Partition tolerance, but that doesn't mean they expect to one day become completely independent nodes (that's merely a stereotype), instead they anticipate that eventually a few vertexes up the graph there may be some unexpected latency, or even a network partition.

The prepping culture can be thought of a distributed systems protocol which enables "self healing" characteristics so that a temporarily cut off part of the cluster can avoid downtime just by shedding a little consistency. (Guns help them reject corrupted messages from outside of their sub-graph during a partition, it's a form of security isolation)

One could argue that large metros also have this capability just that their RAFT leader election process takes longer (gangs shooting it out) whereas rural communities have an easier time with it because there's less chatter on the network. Prepper communities have more caching, and they store more shards on every node. ;)

In Europe they have more of a monolithic architecture from what I gather although they've enjoyed pretty decent uptime.

comment 10y ago · link · parent

I have no personal experience but just from reading the news my feeling is that it's reached the point where both sides just kind of want to see the issue "go away" in the media.

The people operating on these markets certainly don't want the attention, and the people who are fighting the drug war don't want the issue raised because the numbers don't look great. Everyone just seems to want it to disappear off the radar....and so it is...

comment 10y ago · link · parent

I think your confused about gold. Any coin shop or pawn shop in America will give you close to spot price in USD for the yellow metal. You don't even need to show ID.

The hard part has been.. how do you buy or sell or pay with gold electronically while having a convenient audit trail so that it's not a time consuming process to file your taxes, but that's also solved thanks to a startup founded in part by a senior paypal exec: https://www.bitgold.com/

comment 10y ago · link · parent

> The point being, you might want to re-analyze "high seas gun battle" for its actual downsides.

I agree that there could be tremendous downsides, but at the same time I wouldn't want to reach for any type of safety gear and not have it.

What if it's not even "real pirates" but rather a haphazard raid by what are obviously hostile teenage boys from a nearby village operating a raft with a single outboard motor armed with only machetes ? These kids couldn't afford a gun and this could happen anywhere where there's poverty not just in areas known for piracy

Another scenario, what about the stranded boat that looks like it's stuck on a sand bar relatively close to port and is begging for a tow. There could be a pretty girl on board. It could be an opportunist type situation where they really did just need a tow, but when they sense you're unarmed they might try to commandeer your craft since maybe they have warrants, or a shaky visa situation inland or whatever.

123