HNHacker News
TopNewBestAskShowJobs

micaksica

1,719 karma · joined January 26, 2016

i work on web application security.

american west coast / singapore / 東京

the opinions expressed here are my own and not the opinions of my employer. they might not even be my own professional opinions. they are also subject to a lot of change, as they have through the years.

submissionscomments
micaksica··on Your Node.js authentication tutorial is wrong
There isn't one.

I think that the Node ecosystem tends toward minimalism and compartmentalization in modules, and in doing so monolithic authentication solutions don't really exist like they do in other frameworks in which there's more "magic", like Ruby/Rails.

You'd have to choose a higher-level Node.js-based framework, and there isn't an emergent solution yet. Personally I've been directed toward Hapi and Feathers.js as of late. Feathers I committed some PRs to and filed some issues against this weekend, which the maintainers are taking seriously, but it could use some more functionality and deeper testing. Hapi I haven't personally looked at, but is backed by some of the Auth0 guys.

micaksica··on Show HN: Anonymous Discussion Platform For Any Topic (think Reddit meets Slack)
Pseudonymity is probably the better term.
micaksica··on Joining Apple, Amazon’s China Cloud Service Bows to Censors
In case you assumed that corporate responsibility is actually taken to heart by those making corporate strategic decisions, let this show you that it is not. Corporate responsibility moves are little more than good PR, a product selling point, and a way to avoid fines in some jurisdictions. Money matters more than morals. These corporations want access to the Chinese market. To gain access (and profit from) to the Chinese market, you must play ball with the state.
micaksica··on Malicious crossenv package on npm
Thanks, I came here to post this exact thing.

Even if NPM isn't prohibiting packages, you'd imagine they'd have internal security alerting for Levenshtein distance from the names of very popular npm packages. Such an alerting script wouldn't take terribly long to write (or to run). It'd let them catch this type of abuse much faster even if they decided (for some inane reason) that banning the names outright would break UX.

micaksica··on Malicious crossenv package on npm
Oscar is a dev, Kent is the maintainer of "cross-env", a popular package. hacktask is an unknown malicious module uploader that was harvesting credentials.
micaksica··on Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
> A good static type system is too useful and important.

What? A whole lot of web apps these days are built in Python, Ruby, or JavaScript, none of which are statically typed languages. Do you mean a strong type system?

micaksica··on Robot cracks open safe live on Def Con's stage
You bought a TL-15 safe for your home? Where did you place it? Even the smaller TL-15 safes weigh hundreds of pounds and require some logistics to place. They are very impractical for most apartment dweller types, or even some high-density, old-construction flats because of their weight.
micaksica··on Higher-paid, faster-growing tech jobs are concentrating in 8 US hubs
This is actually still a problem with some air-cooled bikes, and a lot of even the common beginner bikes made up into the 00s are air-cooled. The bike overheating aside, when you're sitting stopped on 101 near Mineta airport on a gasoline-powered heater, you will overheat too.
micaksica··on Flush times for hackers in booming cyber security job market
I work in infosec as a security engineer, I agree with this more than anything else anyone has posted about the state of the security industry on HN, ever.

For security being a human problem, I have yet to meet infosec types with strong backgrounds in human factors or product design. Nearly everyone came to this industry from netsec/IT/SOC work, or low-level programming, and neither group has a decent understanding of the usability issues that plague the security posture of common users. What works for a CLI junkie with deep systems knowledge absolutely fails people who barely know how to navigate their Android phone.

If anyone's interested in attempting to solve some of these design pattern issues, please reply here or DM me on Twitter. I'd love to actually get a group of people together trying to come up with standard, secure UX paradigms that can be referenced by others.

micaksica··on Higher-paid, faster-growing tech jobs are concentrating in 8 US hubs
As a motorcyclist, whenever I was in SEA on my motorcycle I was always dismayed that lane splitting / filtering is not legal in the state. Motorcycling is still the fastest way (for me) around SF and the Bay Area, and the lane splitting in dead stopped traffic is a large reason why I started riding in the first place.
micaksica··on U.S. Defense Budget May Help Fund “Hacking for Defense” Classes at Universities
This is exactly what is going on. This is a thinly veiled propaganda/recruitment effort trying to capitalize on students' new-found, Mr. Robot-driven curiosity regarding "hacking".
micaksica··on Reverse-engineering the Starbucks ordering API
The standard way of frustrating decompilers for Android applications is with heavy obfuscation using ProGuard [1] or DexGuard. [2] IMO, DexGuard is a real pain in the ass to reverse around. If you aren't dealing with heavy obfuscation, decompiling APKs is trivial using jadx. [3]

In general I have found that most smaller app developers don't obfuscate at all, and often you can find hardcoded keys/secrets in these smaller applications.

[1] https://developer.android.com/studio/build/shrink-code.html

[2] https://www.guardsquare.com/en/dexguard

[3] https://github.com/skylot/jadx

micaksica··on A labor market conundrum: Skilled and high-paying blue-collar jobs go unfilled
While this is a clickbait article, it's probably worth many high schoolers recognizing that compensation is simply unevenly distributed. There's an increasing realization that going to college does not give you a fast track to FTE status in many industries anymore, and there needs to be a better understanding of the fact that the job market is, well, a market, and salaries will adjust based upon the supply of that market.

I think a lot of current CS hopefuls coming in as freshmen are going to see a shocking market adjustment when there are tens of thousands of juniors competing for the same jobs, just as we saw with law degrees after the last recession. There are way more JDs than there are good attorney jobs, and even fewer partner positions that really bring in the money.

Market dynamics affect one's well being less when you are not shooting simply for compensation, but also job satisfaction. Of course, in our society, highly indebted students are forced to be all about the money and not about the satisfaction. This doesn't lead to successful careers. It leads to burnout, disillusionment, and ennui.

micaksica··on Shared thoughts after 6 years in Pentesting
Agreed.

I work in infosec as well, and I think the author of this article is confusing time spent vs. passion for something. Coming from software engineering, security is no different than any other technical profession: if you don't love what you do, you probably won't be very motivated to learn, and thus you probably won't be very competent. You need to have the passion. This doesn't need to manifest itself in 80 hour work weeks.

There's a whole contingent of "infosec ninjas" that think there is some type of bushidō bullshit going on, where if you aren't constantly training for your pentesting job like it's a martial art, you aren't capable of doing your job. In my experience, these people are often the most insufferable to work with and driven more by ego and power fantasy than the desire to tinker or craft.

Security is part of my "lifestyle" just as coding is. I work on security-related stuff outside of work not out of obligation to practice infosec kata, but because I actually like it. Some weeks I don't do anything outside of work other than browse /r/netsec or HN; some weeks (like this one) I'm writing some tools for myself to make a code audit easier.

micaksica··on The Great Suspender developer account hacked, extension pulled from Chrome Store
I pulled down this package. It is just a package.json file.
micaksica··on The Great Suspender developer account hacked, extension pulled from Chrome Store
There was a thesis on this a year ago:

http://incolumitas.com/2016/06/08/typosquatting-package-mana...

After the "left pad" debacle, npm provided protection from typosquatting a deleted module:

http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm

micaksica··on The Great Suspender developer account hacked, extension pulled from Chrome Store
As for this vector, credentials leaks have been littered across the community and they've been aware since 2015. See https://github.com/ChALkeR/notes/blob/master/Do-not-underest... for more information.
micaksica··on Oculus founder Palmer Luckey is developing border surveillance technology
I withhold any opinions about Luckey. I've never met the guy and I don't feel it's fair to judge somebody based upon what journalists have decided to write about him. (However, I don't think we'd get along much.)

Besides, there's something better to learn here: the surveillance state will always find willing people to work on technologies that can potentially be used to oppress populations. Luckey is enormously wealthy by world (and HN) standards -- he has "fuck you money" that so many on this board are searching for -- so you can't say he's out building this stuff to pay the bills, to feed his family, et cetera. He's out building this stuff because he is a paladin for this cause, regardless of whether or not you find it detestable.

micaksica··on Silk Road founder loses appeal
> There's a substantial difference between social drinking or overprescription

We're talking about lives being ruined. I know many alcoholics that are "social drinking", every day, to the detriment of their own careers and family lives, being run through the court system DUI after DUI. I also know many who, after a back injury, are still on Oxy years later, just finding new doctors that will re-prescribe them Oxy again. I know people whose teenage children then started stealing and taking the Oxycodone from their parents' supply. I have a friend currently sitting in prison for opiate-based drug offenses as well -- much to the detriment of his immediate family.

These situations were facilitated by these very institutions. Alcohol distributors may be the kingpins and bars the corner dealers, pharma companies the kingpins and MDs the dealers. SR was a proxy and gateway to substances that in some cases are far less dangerous than the ones our own country seems completely OK with.

These are consumption-side issues, as you seem to agree with -- I am drinking a glass of wine right now, not four bottles. The same can be said about a lot of potentially socially destructive substances that were available on SR, and other illegal-in-many-states substances such as marijuana are generally accepted as virtually harmless in comparison to oxy or alcohol.

micaksica··on Silk Road founder loses appeal
The "think of the children!" appeal to emotion doesn't usually garner sympathy here.

I strongly disagree with your statement and where you're placing blame for the issues of peoples' lives being ruined. Drug users are the ones ruining their lives and their families if they have them with their addictions. They are consuming them, whether the "choice" of consumption is theirs anymore is anyone's guess, but the choice to not so much as attempt be clean is. There are support groups, harm reduction strategies, and rehabilitation avenues for most users of physically addictive substances.

Do you believe life imprisonment is the correct answer for every bar and liquor store owner in the world, or every pain management MD that is overprescribing Oxycontin? At the worst, Ulbricht has no worse social effect than these people.

I say this as someone whose own life has been "ruined" by addicts, has had my own issues, and who has seen my families' lives ruined by them the same. It is not the fault of the supplier. It is the fault of the user.

micaksica··on Securing Node.js Applications
This title has been changed from its original. Mods?

Node.js applications are one thing, Express.js applications are another. This seems to talk about the Express.js framework, and Express has its own set of guidelines that should be followed as the bare minimum, sadly in the "advanced" section:

https://expressjs.com/en/advanced/best-practice-security.htm...

https://blog.risingstack.com/node-js-security-checklist/

In reality I see two things that bite most outfits getting their feet wet with Node for the first time, and it's not how well the passwords are hashed.

First is the age-old problem of input validation. Express.js devs read the tutorials that show bringing in data directly from req:

https://expressjs.com/en/api.html#req

... and just accept it. Unvalidated input / unfiltered output seems par for the course in a lot of smaller Express.js APIs, especially when they are using Angular, Knockout or another client-side framework that offers some filtering of data being returned from the API.

A close second is third-party dependencies. While the Node Security Project does what it can to help out, and nsp/snyk are good best practices, the Node.js culture of importing modules for everything often leads to really large attack surfaces with rarely-audited modules of unknown provenance added for development speed. Third-party modules -- especially less popular ones -- are a goldmine of critical vulnerabilities just as WordPress plugins used to be (and still are).

Also, a lot of Node.js teams popping up from development shops et al consist of front-end engineers that have never needed to understand the systems-level impact of their code. Many are used to JS for talking to API black-boxes and making cool effects or reactive user interfaces, and they're not often thinking about directory traversal, SQL injection or cookie poisoning because those have traditionally not been in the domain of the JavaScript-oriented developer.

micaksica··on An analysis of the Nomx secure communications device
It's unlikely to be performance art, and if this isn't fraud it's gross negligence. Does anyone know of any British legislation that refers to the sale of these types of products?
micaksica··on An analysis of the Nomx secure communications device
They ripped that straight out of the OWASP CSRF cheat sheet, under "Personal Safety CSRF Tips for Users". Yep, clearly nomx's issues are all just user education issues.

[1] https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%...

micaksica··on My Hackintosh Hardware Spec
> There's only so much of the hardware rat race worth keeping up with anymore at the desktop level.

I believe there's only so much of the hardware rat race worth keeping up with at all. Assuming most of Hacker News is coding, we're spending a lot of time in text editors; even if you are constantly recompiling code, CPU-wise is anything giving you that much of a boost over anything past Haswell or the PCIe/NVMe drives in the current MBP?

However, my work machines are a 2014 MacBook Pro 15 with a GTX 960 eGPU / TB2 when I need mobile hashcat, a T440s, and a Surface Pro, all pretty old hardware. 90% of the time I don't notice RAM pressure or that I am CPU bound, even when running a few VMs (say, Kali + Win10 on my MBP, or a few Win10 images in Hyper-V on the T440.) When I need more power than that, I can usually just rent it out of AWS/Azure.

I think sometimes the hardware game - especially on the Apple front - seems about keeping up the cycle and appearances of getting the new hotness. Yes, the exhilaration of having the next big thing is great, but functionally I'm inclined to believe that having the old thing is just fine 99% of users, and probably 80% of HN readers.

micaksica··on What a stranger taught me about Japan
> I'm saying that it's better to taste the tea, and useless to talk about it.

Yes, it is better to taste the tea, but useless to talk about it? That's a bit strong, IMO. It is futile to reduce a culture to cliches, sure, but there is always something to be learned from the discussion thereof - in fact, even this shitty article has raised the point that "Japan is more than just this cliche, so ignore this hack."

micaksica··on Reverse Engineering Malware 101
+1 for dnSpy. It is the only .NET debugger/decompiler I use these days.
micaksica··on HTTPS Interception Weakens TLS Security
I don't think that's the correct interpretation of this document. A better title would be "Most TLS Proxies Considered Harmful", not TLS interception as a whole.

US-CERT is explicitly calling out that many appliances and applications often are weakening security vs. the common TLS clients, by way of not properly validating certificate chains by proxy for the client and otherwise masking SSL/TLS issues from being surfaced to the end user.

I believe this is CERT trying to get software companies to get their act together on solving security-detrimental UX/UI issues vs. a blanket statement not to add TLS interception proxies to a corporate network.

micaksica··on How to Get a Design Job at Airbnb
> Folks love to talk about how they do “design strategy” and want to work on “new big things.” They’ll tell us that they can do the details, but they’re better with strategy and developing new concepts and their time is better spent elsewhere.

This is of no surprise. Regardless of your job, but especially so in one that is aesthetically driven and judged, working on the high-profile/sexy stuff is usually what gets you promoted or gets you more industry recognition. If you are career (progress) driven, working on the small stuff probably isn't going to get you there as quickly if you can delegate that off to a junior.

micaksica··on Debunking the myth of higher pay in Silicon Valley
I'm beginning to find the "Silicon Valley" / "San Francisco" divide to be quaint pedantry at this point.

Culturally to these kids I have met in interviews and career fairs, there is absolutely no distinction. If you are in the tech industry and you live somewhere west of the Caldecott Tunnel, South of the Golden Gate Bridge, and north of, say, Morgan Hill, you are in "Silicon Valley". Just because the region was mapped differently in its Fairchild Semiconductor days, or I guess even the dotcom days, doesn't mean that the definition has not expanded since.

A lot of people that move out here want to live in the city and commute into their offices, and a lot of the new unicorns are SF-city-based. The cost of living in SF completely matters to many that think they can live there and work in the greater Peninsula.

micaksica··on Ask HN: How do you start a career in software security?
I work in product security. Early in my career, I often did bug bounties, CTFs/wargames, but I didn't really get into "software security" until I had spent some years doing some large scale production-level software engineering.

Software security is a big space. There are pentesters, exploit developers, researchers, application security people that work attached to product engineering teams, et cetera. What is it that you really want to do?

IMO to really understand how to break things and how things break, you need to be able to build things as well. Outside of very limited circumstances, you need to be able to communicate to product teams and other developers why a certain exploit class succeeded, what they can do to mitigate the issue in prod now, and what best practices to follow to mitigate the issue class in the future.

← PreviousPage 2 of 9Next →