DEV Community

Tim Abell
Tim Abell

Posted on • Originally published at timwise.co.uk on

Enabling modern app security

A broad-view of improving security in any organisation.

An inspirational panel discussion

Yesterday I went to a panel discussion hosted by eSynergy, “Innovation at its safest: Excellence in Software Engineering through Integrated Security Best Practices”

photo of panel discussion

The whole event was live-streamed, watch the panel discussion recording here

For me who lives in developer-land, it was a useful broadening of perspectives around app security. What follows are some bits that I took away from the discussions, which I think provide a useful starting point for anyone tasked with running any modern software systems in this increasingly hostile security environment.

Who’s who at the event

The speakers at the event were as follows:

  1. Intro from Ulrike Eder (eSynergy) [00:03:47]
  2. “Beyond OWASP Top 10” from Grant Ongers from OWASP and secure delivery @rewtd@defcon.social / @rewtd [00:06:37]
  3. Grant was then joined for the panel discussion by: [00:19:40]
    • Salman Iqbal, Principal Consultant, DevOps and ML Security at esynergy (hosting the panel)
    • Teresa Wu VP Engineer at J.P. Morgan
    • Ben Burdsall, Chief Technology Officer at dunnhumby, non-exec at eSynergy
    • Tom Harris Chief Technology Officer at ClearBank, BuildCircle, ex-JustEat

Takeaways

There’s a bewildering array of things you can / should / must do for the security of your systems, users and company.

Within this article you’ll find some starting points for your onwards security journey

Levels

There are two reasons for thinking of security in layers or levels:

  1. Your business needs, risks, regulatory environment and finances
  2. Your security maturity

Some businesses are more at risk such as banks and thus need (and can afford) a more significant investment in security measures (such as multi-layered cloud infrastructure defenses), whereas some have less budget and less risk and so can operate at the simpler levels of security.

If you are currently very poor on security then there’s little point sprinkling some advanced things on top, it’s important to properly address each layer of security capability on the way up.

Regardless of your business needs, perfect security is always an unattainable ideal, but a worthy target nonetheless. The Unicorn project calls this kind of never-quite-attainable perfection an “Ideal”. The Unicorn Project and the Five Ideals: Interview with Gene Kim

Who’s job is security anyway?

  • The directors are “accountable”.
  • The developers, product etc. are “responsible”.

While developers can and should write “secure code” (SQL Injection vulnerabilities is still on the top 10 list), it’s important that everyone plays their part.

Notably the product function (“product owners”), as they are the decision makers for balancing the competing demands placed on delivery/development teams, including how much to invest in security defenses. (Much nodding in the audience at this one!)

Developers

Tools help but the developers need to understand what is required.

At ClearBank there is:

  • “Lunch and learn” sessions from AppSec team.
  • Training with “HackSplaining”.

How ClearBank leveled-up app dev security

  1. Added security training
  2. Required pull-request approval from someone with security training
  3. This created a temporary bottleneck, which encouraged everyone to do the security training
  4. Incubated an AppSec team to “reduce the cognitive load of security in collaboration with CISO and CTO (Tom)
    1. Enthusiastic internal devs
    2. Additional external resource
  5. Collaboration at the top then filters down to all the teams

Justifying security investment

The board of directors now face criminal penalties (i.e. jail time) if they don’t properly approach security. It used to be just financial penalties but that wasn’t enough as they could just be absorbed as a “cost of doing business”.

If you need the C-suite or board to take security sufficiently seriously you can remind them of the legal penalties and costs!

  • Do security right because it’s the right thing to do and you care about your customer and their data.
  • There’s the “daily mail test” - how would we feel if there was a breach and it hit the papers?
  • Put a cost on breaches, e.g. probability of breach multiplied by cost of breach.
  • Use the “house fire” analogy. No-one thinks that insuring your house against fire is a bad investment. The same is true for investing in security before you have a incident or breach.

Lead from the top

Leaders should do the training too, no-one is too important and it sets the tone and culture, encouraging everyone down to the devs to do the training too.

Shift left

Shift Left: “take a task that’s traditionally done at a later stage of the process and perform that task at earlier stages”

~ https://devopedia.org/shift-left

Move security left. Nuff said. Dev+Security not Dev versus Security.

Check security and licenses at build time. Gives assurance of security for customers.

The Top 10 is not enough

The OWASP Top 10 is a good tool for awareness and generating conversations, but addressing these is only the lowest “level” of security.

A much broader view of security is provided by the OWASP Application Security Verification Standard (ASVS). It is also broken down into levels to allow you to start at the bottom and work up as your security capabilities mature, and decide what level your business needs to attain based on the relevant risks and regulations. Banks for example would go all the way to level 3.

There are also per-environment lists. E.g. OWASP Mobile Application Security for mobile app development.

Pen tests

Don’t just tick off “pen test”, ask your pen test providers how they work.

  • Do they just cover the OWASP Top 10?
  • Do they just cover the SAMM Top 20?
  • Do they go deeper than the Top-n?
  • Do they look at ASVS?
  • What tools do they use?
  • Do the tools report against the ASVS? (If not talk to the tool provider!)

Threat modelling

Use threat modelling, assess and then defend against that.

Red/blue teams

Can be effective, but also very expensive. Do the basics first (e.g. sql-injection training!)

Tools & resources to level-up security

AI, LLMs & ChatGPT

There are new threats and risks with the new AI tools:

  • Developers incorrectly using information provided by the LLMs
  • ChatGPT allows attackers to accelerate, particularly social engineering. E.g. asking ChatGPT for an org chart instead of having to trawl for data manually, then using that in social engineering attacks. This might make it quicker for an attacker to use someone’s manager’s name to lend authority.
  • Developers etc accidentally exfiltrating sensitive data such as private keys and passwords by providing it as inputs to an LLM such as ChatGPT that then integrates the data into its model in a way that allows extraction by a malicious third-party.

Currently use of ChatGPT is blocked at some big companies.

The change to the security landscape is a bit like asking “how did the creation of the internet change theft”.

OWASP has used LLM technology to help make it easier for clients to decide which of the 150 tools they have are most appropriate.

Top comments (0)