Thursday, March 27, 2025

Common Sense Isn't

Although the specific examples here are different, this is related to an idea I'm letting percolate at the moment 

https://www.tumblr.com/tanoraqui/779184679453589504?source=share

Monday, March 24, 2025

Complexity and Abstraction in Coding and Government Work

 I have learned that when coding something complex, when you get bogged down in issues and start losign track of what is done the urge to just wipe it all and start over is often overwhelming.

And often, a bad idea.

Well, perhaps not with a specific program, but in general the existing code has already had a lot of bugs worked out. If you wipe that all away and start fresh, you will often face the same sorts of issues and have to spend time figuring out the solutions - again. 

That's part of why tech seems to just keep adding layers, instead of reworking a program in its entirety. There are times where a complete redo is a good idea, but most of the time nobody wants to spend the resources redoing something that is already getting the job done.

And so you get layer, on top of layer, on top of layer, until eventually it looks like that xkcd comic:



What's interesting to me is that over and over and over again I see this urge to simplify things, to reduce the complexity, to somehow make it easier to manage.

Except what tends to happen is that yet another layer gets placed on top, one that looks prettier and perhaps consolidates all the things you need to monitor... but it doesn't actually change the underlying structure, and in fact can even obfuscate it a bit more.

Which is all fine and dandy when things work, but someone still has to understand that structure - especially when something breaks.

There are a ton of tools for automating what we do, and for the most part I love them. If you have some complex task that involves doing hundreds of different things in the exact same order, the exact same way, every time - automate it! People are prone to error, they're one bad day or one interruption from skipping a step or repeating a step or adding the wrong input, and if you can build a pipeline or a script that does it all correctly, it's a great time saver.

But someone has to know the process well enough to create that pipeline or script. And if something needs updated, or upgraded, or modified, then someone has to know it well enough to make those changes too.

In other words - automation can't really replace the need for human expertise. Not completely.

Looking back, I feel like something similar happens with government programs and privatization.

The main belief I heard, growing up, was that 'governments have no incentive to improve, whereas competing businesses do. Therefore private businesses are more efficient, and it's better to privatize where you can.'

But... that's only true in certain circumstances. There are certain public goods that benefit society as a whole, but don't have great incentives for private companies.

I was thinking about that because I picked up Careless People (in a great example of the Streisand effect), and was reading about their reasoning for internet.org. Basically they realized that if they wanted to expand their userbase, more people needed to have access to the internet. So they created an organization that was supposed to encourage basic internet access.

Kind of like how in 1954 the NTCA worked to encourage telephone access in rural areas. Except it's important to note that the government helped a lot with funding these efforts.

In the private sector, the cost of connecting far-flung and distant communities isn't really worth the amount of money you can make from adding those customers to your business. Not unless you get the government to help tip the scale a bit.

And yet, although the wiki indicates that they did indeed cooperate with some governments for this, in the book it seems the initial focus was on building drones, satellites, and lasers to deliver the internet.

No talk at all about creating a program like the NTCA. 

Perhaps they thought those drones, satellites, and lasers would help create a profitable business? It does sound a bit like Starlink now that I think about it. I don't think Starlink has yet reached the point where the profits outweigh the costs involved in building the structure...

But I'll leave that to the corporate folks. The part I wanted to point out was that, at least initially, there didn't seem to be any realization that this is actually where you would want government involvement. That the public good of internet access is not something that private companies are likely to find profitable. Not once you get past dense populations where building the infrastructure easily brings in enough customers to pay for itself.

There is not a universal truth here, no situation where private businesses are always better, nor government funded organizations. 

They are different tools in the toolbox.

This also, in some ways, reminds me of my experiences in Iraq. Because in the interests of keeping the military small, quite a few services were privatized out. Supposedly it saves money in the long run, but when you spend a good decade or more in another country... you generally are paying more for those privatized services then you would if you'd kept it in house.

That's not even getting into the security concerns, especially when all the dining facilities are run by private companies who hire foreign nationals because their labor is cheap.

But that's a whole other conversation. What I really wanted to get at was this - even with privatization, the government still had oversight duties.

You don't get to just say 'here's a contract, have at it.'

Sure, they may be 'competing' with other private businesses, but ultimately the government is the funder and the one who decides which one gets the contract. And if they're not ensuring the company is doing the work as expected, even those private companies are prone to waste, fraud, and abuse.

This might not seem related to how I started this post, but I think at the core is a similar urge - simplify and abstract away the complexity.

Except it doesn't ever go away, not really. 

It's just hidden, and now you've got a bunch of people running around acting knowledgeable when all they have is a surface level understanding.

Another Update

 I've had an idea for a post tickling my brain, though I've mostly been focused on soaking up as much info as I can on how to find web vulnerabilties.

I've discovered that while the labs are kind of fun, you know exactly what you're looking for (it's often in the name of the lab), and when I go look at a real site the experience is - different.

I think I want to come up with a more systemic way of checking things. The site I was looking at may or may not have any vulnerabilities, and tbh it seems a bit more complicated than what I've been seeing in the labs. Still, I think that's part of what makes it good experience.

I saw something that I vaguely remembered had potential, went looking through my notes and spent most of today working on the labs for a Server Side Request Forger (SSRF). Then took that knowledge and tried checking for it, which (fortunately or unfortunately, depending on your perspective) doesn't look like it's actually a concern.

Anyways, it's still a large amount of information to take in, but the more I absorb the sooner things will start clicking.

And since the potential post is a totally different topic, I'll leave this update as is and see what comes out next.

Thursday, March 20, 2025

Update

 The last couple of weeks have been quite the emotional roller coaster.

I have also been thinking about how much our mindset affects what we experience.

I have always had some issues with beliefs like 'the Secret', because at the end of the day it basically puts the blame on you. If thought alone could get you where you wanted to be in life, then someone who is struggling in poor is just... not controlling their thoughts?

Something like that... it's kind of ugly, really.

On the other hand, I do get that perception shapes reality, and that how you perceive something affects how you response/react to it... and that such thoughts can create a self-fulfilling prophecy.

For example, if you assume something negative that happened was due to an attack and respond harshly, it can lead to developing a hostile relationship. If, however, you assume it was a one-off or an accident and don't respond harshly, you might just stop an escalating cycle of negative behavior and avoid a whole lot of misery.

It's hard to say for sure, of course. None of us are able to fully see alternative timelines. I do, however, believe I can sense when I break a typical chain reaction.

I don't want to go down that rabbit hole right now, though. Let me just say 'I have been considering how my thoughts are affecting my current reality'.

Sometimes I am doing quite well. I've been working through some labs online, practicing things like web cache deception or how to modify JSON web tokens or how to get around access controls. 

As I am thinking past my most recent bout of panic, I've actually been learning a LOT in the couple of weeks. I mean - my last official day at work was 7 March, and even though I had been reading through the Web Application Hacker's Handbook before that I had hesitated to configure my laptop for the work because I still had the two work laptops to deal with and officially still was checking in at work in case I was needed for something.

Since then I have installed Burp Suite, run through The Burp Suite Cookbook, explored one of the programs in a Vulnerability Disclosure Program, and basically been immersing myself in bug bounty hunting.

I probably should say 'hacking', but even though I understand the subcontext of 'someone who thinks outside the box, who explores a system and finds unique and unexpected ways to take advantage of the system's flaws' and don't really have a problem with it when it comes to white hat or grey hat hacking, in my head the term still refers to teenage boys trying to prove themselves by doing stupid stunts purely to prove they could.

Like - I could care less about pwning someone, or doing the tech equivalent of comparing dick sizes. 

But that's more a caricature of a hacker than reality anyway, and I do have a lot of respect for the people who have the technical skills to find and exploit flaws.

I am digressing again. Anyways, the thing is that when I stepped away from the labs and went looking at a real program, it felt a little overwhelming.

At least in a lab I know what I'm looking for. I know if I should be trying to do a path traversal or playing around with the login fields or whatever. Checking a site where I'm not even sure there's going to be a bug?

One that has much more complicated login features? Like 2FA? One that has jsession cookies and JSON web tokens?

Yeah... it felt like I went from the kiddie pool straight into the deep end.

But when I got past the emotional impact and really thought about it, I remembered a couple of things.

First, some of what I listed above... which is that I've already absorbed quite a bit in less than two weeks. I have experience with massive data dumps... periods of time where the metaphor 'drinking from a fire house' does not feel like much of an exaggeration.

And I have always done well. I just soak it all up, and eventually I start making connections and it all starts fitting together.

Right now I'm still in the early stages, where there's a massive amount of information and I don't quite know how it all fits together.

But if I have the time and the resources (and there are a LOT of resources on this), then I can and will get there.

It's like a coworker said regarding my previous position a few months back - I started out new and inexperienced, and before the year was out I was one of the go-to people. Someone who was asked for input on complicated issues by people who had been working there long before me. 

I also took a bit of time to look up some more advice on bug bounty hunting. Not the basics that I've been soaking up, but advice better suited to where I'm at on this path. And it's interesting that so many of them say 'don't switch programs too fast'.

It seems that - given most of these are public programs where others already have been looking for bugs - the true experts really get to know the applications they are investigating. They don't simply spend a few hours doing a superficial check and then decide it's not worth it. (Okay, apparently they might do that as they built up experience and their intuition plays a role, but that comes later).

I think I really have to dig into whatever app I want to focus on, on a deeper level. It's actually rather ridiculous to give up after only one day. I've heard some of the bug bounty hunters talk about taking weeks. 

I had already investigated that a bit before I even looked at this site and I knew it going in - but emotionally it's a whole other story.

Because emotionally...

Emotionally I'm thinking 'I only have so much time before I will be forced to make some painful financial choices'.

Even if I'm confident that I have the capability to learn and do this, I am not confident that I can make a living at it. 

Especially not before I work through my reserves.

And that's really the issue, isn't it? 

That mindset and those fears seem like a subconscious trap, something that would sabotage my efforts before I've even really started.

They might not be invalid - I only have so much leeway before things get ugly.

But if I let them control me now, then I feel like I'd be giving up before I even really tried.

Wednesday, March 12, 2025

Update

 As I have indicated before, my company has gotten serious about working in the office and I have been let go.

To be honest, I got most of my freaking out done before it actually happened. Based off the conversations I had with my manager, I knew that if I continued to refuse this was likely to happen.

In some ways, having it happened actually came as a relief - no more wondering when the hammer would fall. 

Given I had some prior notice, I had finally gotten around to reading my version of The Web Application Hacker's Handbook, and...

I understand quite a bit about how it works.

Oh, I have realized (especially as I work through some of the labs on the PortSwigger site, as well as a book on Burp Suite from my account with O'Reilly) that understanding what's going on behind the scenes does not really mean I can open up a website and easily knock out an sql injection.

On the other hand... Burp Suite is a powerful tool, and while I'm sure the true experts will grumble about 'script kiddies' and whatnot, if it can automatically test for that I don't think I need to reinvent the wheel and inject it myself.

Well, I mean... I want to, eventually. But as my father has said - if you do it often enough you'll memorize it, and if you don't you'll forget it. 

I think I just need to build up experience and I can do it without having to look things up, too.

So anyways...

I think I'm going to try being a bug bounty hunter.

Seriously.

I am... concerned about whether I can earn enough money to pay the bills. Looking around online gives mixed messages.

Some people have done really, really, really well, but they might just be the special exceptions. Others have not done so well, and only hunt for bugs as a hobby.

Digging into it a little deeper, it does seem like most of those are the ones - like I have met in my professional career - who generally have a superficial knowledge and don't dig into things that deeply.

If that is true, then I don't think I need to worry. After the last five-six years I have realized I'm actually quite good at digging into complicated things like this.

I have also repeatedly heard professionals say that there are a LOT of bugs out there, so it seems like I should be able to find plenty.

Maybe.

It seems a bit like a gamble to be honest. Potentially great pay off, potentially a huge disaster (or maybe it will just give me some experience to put on my resume and then go back to some sort of company payroll).

For now, however - I have a plan. I have the capability and the resources to follow the plan. And I really want to try working for myself.

It has been... rather nice so far, actually. So long as I don't dwell too much on how I'll pay the bills once I've worked through my safety net.

I've been trying to somewhat keep the same business hours, just firing up the computer and playing around with Burp Suite and the OWASP vm and the PortSwigger labs. It's rather fun, even. Like 'Oh! That is how they do it!'

Some of it is quite clever, too. Like figuring out what a legitimate username is based on how long it takes the application to process a login attempt with an invalid password. I'm really impressed with the people who worked out some of these tricks.

I really hope I can make this work permanently.


Sunday, February 2, 2025

Lions and Lambs

 I rather liked my painting analogy - it helps explain what I mean when I say that an idea is floating around in the back of my mind, but that it hasn't come together to the point where I can write it.

The problem is that I will play around with the idea in my head and follow it through to a certain extent - and then realize that I'm focusing too much on one part of the whole. Like going into great detail about the way a fish is painted, and never discussing the reflected trees. 

I could talk about a book I read - about the Carolingians. The descendents of Charlemagne, and in particular the fighting between his grandsons. How they exemplify the differences between the average person and people in power. How all their petty squabbling with each other meant that they put multiple armies in the field - armies that generally had to live off the land, and therefore were a plague on the local populace - and despite all the violence and suffering never really got anywhere with it.

How their pride prevented them from doing as Jesus said, and being 'good shepherds' to their people. 

But pretty soon I feel like I'm just rehashing things I've said before, and I don't think anything I say is going to convince people like that 'take care of your people' is something they should take seriously.

And that's not really worth discussing yet again.

No, I think the issue is that if you want to have lions lay down with the lambs, you have to discuss the lions. 

It's tempting to say 'just get rid of the lions and everything would be great'. We even have the story of the baboons who grew more peaceful after the most aggressive baboons died out en masse.

But we're not really two separate species, people have the potential to be both. Get rid of the 'lions', and it probably won't be long before people like that start appearing again. 

Besides, I don't think they're evil in and of themselves. God probably even admires them, kind of like we do. 

See how sharp their claws are. Hear those fierce roars. See the way their muscles flow as they move.

For a lion to lay down with a lamb, you probably need the lion to... not be hungry, not feel the need to prey on the lamb... and probably get enrichment in other ways so they don't have the desire to stalk or pounce or hunt the lamb.

If you had asked me before, I'd have said that's part of what was great about democracy. That even the more predatory of our species knew that in order to get what they wanted, they had to play be certain rules that protected the rest of us. 

Does it matter if they're power hungry and prideful if the only way to gain power is to at least pretend to care?

It doesn't feel like that anymore, though. 

Clearly 'be a good shepherd' and 'the first will be last, and the last will be first' are ideas that the current predatory lions don't believe in.

Hmmmm. The ideas floating around there still feel off, but to be honest I'm more concerned with preparing for my next potential career change than digging into it any deeper. 

Too bad I can't just make a living throwing out random blog posts.

Update

 I had some further thoughts on my post about lions and lambs, but most of that was drowned out by my current thoughts on my job and how my coworker tells me that they will yet again try enforcing the 'work from the office' rule (which I've pointed out before I think is a truly terrible idea. Why are so many companies acting so stupid about this?)

This weekend I was reminded again of my original wishes when I studied computer science - to get into cybersecurity - and some of my further thoughts on it.

Namely, that I realized I don't really care for the CISSP material, and trying to calculate exposure factors or memorizing the CIA triangle. 

I've realized, in DevOps at least, that I like just quietly figuring out things. Like, let me dig into the documentation or the logs or try to track down the root cause of some issue or write some script to make our jobs easier or figure out how to create a dashboard to make monitoring easier... 

 I can communicate effectively and can do the bigger picture meetings and the like, but honestly I'd rather just dig into the details.

Which is why I think I'd do better as a malware researcher.

Except...

Well, I don't have a lot of practical experience with assembly. And I've been using Linux at work far more than Microsoft, so I only know a bit about Microsoft Internals.

I have a good overview of the skills I need, I think. But I need practical experience, and just haven't really felt like trying to create a sandbox where I can play around with it. Not when I've been mentally exhausted from my full time job.

Bug bounties seem... a little easier, in the sense that you can get started whenever. But it looks like that requires a lot more knowledge about the front end. About javascript and tools to test for things like SQL injection or cross site scripting or all the OWASP things.

Again, I kind of have an overview of the topic but not a lot of practical experience. Again, however, there are a TON of tools online and I can probably get that. I could do things like Hack the Box.

The bigger concern there is that even though some people are able to make quite a bit of money, it also sounds like the average bug bounty hunter doesn't make as much. I don't really want to take a pay cut...

I could also consider just freelancing in general.

Idk. I'm confident that given the time and a task I can figure out just about anything, but I'm less confident in doing so in a way that will lead to a financial security.

The thought of going fully independent is thrilling - and also terrifying.

To be honest, I'd probably be content to just quietly stick with DevOps for at least a few more years, if the company wasn't being so persistent in enforcing such a terrible idea. It's like they care more about obedience than actual skill, and if that's how they really are then I guess we're not a good fit.

(I could also look for another DevOps position, fully remote. Stick with what I know and all that.)

I haven't yet been told I'm fired for this btw, but I don't see myself going to the office like they want so it's probably just a matter of time. Maybe this is a good time to try to transition into what I really want...

But is it better to focus on the malware analysis and try to find a job there? Or to learn more about bug bounty hunting? Or explore some other options?

Meh. I guess it'll just have to play out the way it will. 

It makes me wish I had the money to ignore all that and focus on the malware research side of things. I think if I took a couple of the courses online, got a certification or two, and then went job hunting I could probably make the transition just fine. (SANS courses sound so cool. And yet they're horribly expensive, and I think the costs are meant to be paid for by the companies hiring people. And yet most of the positions for those sorts of companies look like they expect you to already have experience in that specific area, so trying to get hired on as a beginner seems like a bit of a long shot unless I get those certs).

I'm not really sure how this will go, but I guess it's not an immediate issue.Yet.

But enough about that. Since I'm already online I'll start that follow up post next.