Developer Week 2023 - The Enterprise Community Sharing Security Best Practices
Tags: security, convention, developerweek, events
Published: 2023-03-15 16:47:00

For the first time since 2019, the "world's largest developer and engineering expo" was back in person, this time in Oakland in February: [DeveloperWeek 2023](https://www.developerweek.com/)! Approximately 2000 attendees, speakers, and exhibitors got together face to face to meet and talk about the state of the software industry. People came from all over the world to be part of this 15+ track event that covered everything from application and API design, to Kubernetes and Terraform deployment fundamentals, and basically everything in between. I got to give a talk as well on the state of [cloud development environments, which I have written](https://blog.gitguardian.com/securing-developer-environments-cloud-ides/) about here before.

There was a noticeable thread around cybersecurity throughout all the tracks. As security becomes more and more of a focus for the enterprise, it should be no surprise to see so many talks about securing your data and your applications. Here are just a few highlights from some of the sessions centered around security from DeveloperWeek 2023.

{% embed https://twitter.com/NaweedWardak/status/1627221343606562817 %}

## Securing Your Applications and APIs

### Secure Your APIs

There is a lot you could cover about application security, but one particular topic popped up in several talks, API security. There were two talks on this matter from slightly different perspectives, and I think both approaches are worth looking into, so I am highlighting them here.

The first session was a holistic approach from [Farshad Abasi](https://www.linkedin.com/in/farshadabasi/), Founder and CEO of [Forward Security](https://twitter.com/FWD_SEC), in his talk "Designing Secure API and Microservices-Based Applications." He explained the history of Service Oriented Architecture. While we think of 'web APIs' when we think of Application Programming Interfaces, but APIs have been around for a very long time.  He talked about the transformation at IBM, which went from 1000s of independent applications, all reinventing the wheel to recognizing there were multiple overlapping services underlying every application and starting to deploy addressable services.

Farshad shared that in those early days, heavy-weight solutions like [SAML](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) and [SOAP](https://en.wikipedia.org/wiki/SOAP) worked well behind firewalls, but soon, the rise of web applications and open networks drove HTTP and JSON as the new standards. With this change, we lost the benefit of the single entry into the 'trust zone' where monolithic applications and service-oriented architecture, SOA deployments ran. Running safe Microservices means we can trust no one and need to authenticate all the way through for every request.

At the heart of his session, he explained how API gateways should act as a single point of entry into your application, giving you an isolated service to handle both authentication and authorization. Both of those jobs are related, but he spent some time explaining the difference.

#### Authorization vs Authentication

To make it easier to conceptualize, he suggested thinking about the real-world example of a bouncer at a fancy nightclub. When you first arrive, the bouncer asks for your ID, normally some government-issued document, such as a driver's license or passport. At this stage, the authenticity of the ID is scrutinized to make sure it is legit and not a forged document. The contents are normally confirmed as well, sometimes by the bouncer asking you questions and verifying the answers. This is the authentication process, often abbreviated as AuthN.

Once the bouncer confirms you are who you say you are, they proceed to make sure you are supposed to be there by consulting the guest list. If your name is on the list, then you are authorized to go in. This is the authorization process, abbreviated as AuthZ.

API gateways can help with both AuthN and AuthZ, by examining requests for authenticity and checking for the correct signatures or certificates, and then consulting access controls to ensure only the right requests get through.  Just because you have a valid ID does not mean you get full access to all the DBs and servers.

This approach assumes you are starting with Zero Trust in mind, granting the least privileges possible to allow work to be performed. Farshad wrapped up his talk by talking about the importance of logging, including monitoring and reviewing them consistently. The earlier you take into account how you will deal with AuthN, AuthZ, permissions, and logging, the safer your application will be as you move it toward production.

{% embed https://twitter.com/McDwayne/status/1625980241322864643 %}

### API Security And OWASP
Thinking about API security from early in the design process is an excellent idea, but it can be challenging to know where to start when dealing with an existing or legacy system where you want to update security. This is where the approach from Colin Domoney,

Chief Technology Evangelist at 42Crunch, really comes into its own. In his session "Everything You Need to Know About API Security," he walked us through the [OWASP API Top 10](https://owasp.org/www-project-api-security/). While there is some crossover from the [OWASP Top 10 standard awareness project](https://owasp.org/www-project-top-ten/), the API Top 10 focuses on the unique vulnerabilities and security risks that the API brings.

Colin walked us through the list, and the vulnerabilities at play then shared some industry horror stories that highlighted what can go wrong. In one of the more amusing stories, a microbrewery forgot to lock down the testing credentials that let users get unlimited beer tokens. In another, more widespread example, a WordPress plugin gave full site admin rights to any user who knew how to access the plugin's control panel through URL manipulation; a good reminder to always only grant the least privileges by default.

{% embed https://twitter.com/McDwayne/status/1626689273251647493 %}

### Scaling Safely, Even When Your Apps Are Under Attack

In his talk "Your Apps Are Under Attack," [Cory Gideon](https://www.linkedin.com/in/cory-gideon-a280643b/) Manager Consultant at Sogeti USA, wasted no time in getting to the point that security is hard and takes work. While it might be tempting to think you can just buy a single product to make you unhackable, the reality is no single vendor can deliver on such a promise. This is, in part, due to the pace of evolving threats combined with the complexity and size of our applications.  He also shared some sobering stats:

-   36% of [devs surveyed](https://www.techrepublic.com/article/developers-do-not-view-application-security-as-a-top-priority-study-finds/) attributed priority of meeting deadlines as to why code still contains vulnerabilities

-   33% admitted that they don't know what makes their code vulnerable

-   30% said their in-house security training could be improved with practical real-world examples.

-   30% said their biggest concern with implementing secure coding is dealing with vulnerabilities introduced by co-workers.

> When something goes wrong, many teams just fire up that blamethrower

Fortunately, Cory shared a lot of straightforward best practices and open source tools that can help us all work more securely while still meeting our deadlines.  This starts with securing our password policies. He shared a project called [changeme](https://github.com/ztgrace/changeme) that can detect default and backdoor credentials throughout any system. He also urged teams to review their stacks for deprecated protocols and encryption strategies, as they become obsolete for a reason.

When focusing on points of access, he said it is important to understand attackers have two critical jobs, 1) get in, and 2) get out. If you can disrupt either of those, then you can buy time to act. This is where [honeytokens](https://blog.gitguardian.com/honeytokens-protect-your-holy-grail/) would be helpful as well.

There are basically too many good suggestions to list here, but fortunately, Cory shared that OWASP has already laid all of this out in their [CheatSheet series](https://cheatsheetseries.owasp.org/), which you should check out.
The last points he made were around ChatGPT and some of the potential ways it is already changing security. Cory believes that attackers are already asking ChatGPT to help them and we should be too if we want to keep up in the fight. Toward the end, he shared one of my favorite quotes from the whole event:

> ChatGPT will not take your job. A developer who knows how to use ChatGPT will.

{% embed https://twitter.com/McDwayne/status/1626009481699262464 %}

Beyond just securing your application architecture, developers also need to worry about the issues when you deploy and then try to scale your application. That was the very subject Kerim Satirli https://www.linkedin.com/in/ksatirli, Senior developer advocate, HashiCorp covered in his talk "Scaling Security when Deploying Globally."  At the core of his talk, Kerim told us that "Security is a team sport' that requires us all to automate as much as possible and educate everyone on best practices.

He shared that 10% of companies still say they use Root access for things daily.  While most of us know we shouldn't do that, it is up to all of us to make sure everyone knows that. Another thing we need to do better around is Zero Trust. Kerim encourages us to think about the default access policy as 'deny,' so "if the power goes out, all the doors remain locked".

Another topic he brought up was locking out unneeded regions. For example, if you have your whole infrastructure in AWS zone us-east-2, there is no reason you should leave it open to requests from ap-east-1 or eu-central-2, to just pick a couple at random.

He also spent some time enumerating the advantages of short-lived dynamic secrets. The best secrets are the ones that never get shared; that way, they can never be hardcoded, which we here at [GitGuardian wish happened less than it does](https://www.gitguardian.com/state-of-secrets-sprawl-report-2022).

{% embed https://twitter.com/McDwayne/status/1626296601903005697 %}


## Developer Week Is Helping Us All Dev Better

This article barely scratches the surface of all the amazing sessions at Developer Week. Beyond the talks and workshops, this event was meaningful in bringing a large and diverse community back together face-to-face.

The hallway conversations, the shared experiences at the toss-across and tic-tac-toe lounge, and the memories will last no matter what the AI revolution brings our way. At the end of the day, software is made by people. This was a great event for people to share their passion and knowledge.  I am already looking forward to Developer Week 2024!

If you were not able to attend in person, Developer Week continues online in the virtual event portion. [Check out the Developer Week website](https://www.developerweek.com/conference/) for more info on how to watch the recordings from the virtual event.

{% embed https://twitter.com/dperiwal/status/1626825856961372164 %}