brainlid

brainlid

In episode 93 of Thinking Elixir, we talk with Michael Lubas about protecting our Phoenix applications from common automated bot attacks. We cover API abuse to send email spam, carding attacks, credential stuffing and more!

Showing Posts 1 to 4

Exadra37

Exadra37

As a Developer Advocate for API Security I loved to listen to this episode.

One thing that developers of several levels of seniority commonly fail to grasp is the difference between who is in the request vs what is making the request. When this difference becomes ingrained in their minds, then they will reason about the security of the endpoint they are about to create/fix/improve with another mindset.

I wrote this article that as a section about it, but the main takes are:

The who is the user of the mobile app that we can authenticate, authorize and identify in several ways, like using OpenID Connect or OAUTH2 flows.

Now we need a way to identify what is calling your API server, and here things become more tricky than most developers may think. The what is the thing making the request to the API server. Is it really a genuine instance of your mobile app, or is a bot, an automated script or an attacker manually poking around your API server with a tool like Postman?

While the article was wrote in the context of Mobile API security, the who vs what remains the same for any type of app.

Beware, that sometimes the attacker is a legit user of your app, trying to gamify is way around your service, like getting more reward points.

I really hope that @realcorvus succeeds in endeavour of being the first bot detection tool dedicated only to Elixir. We need more initiatives in the security space, because the bad guys are not sleeping in the couch.

realcorvus

realcorvus

Thank you! I’m glad you enjoyed the episode. Traffic classification is a difficult problem that’s a big focus for paraxial.io. I agree with your article that API endpoints exposed to the open internet are frequently the target of malicious requests. Dealing with an automated attack that becomes an incident is usually a rough day at work, hopefully these discussions help prevent that.

Exadra37

Exadra37

Also, I would like to point that you have shodan.io that monitors all IPs for insecure software/servers. This service does what a lot attackers do on their own or by using this service.

f0rest8

f0rest8

I wrote a simple blog post of how I do it with remote_ip and plug_attack with Metamorphic while respecting people’s privacy.

I also wrote another on rate limiting login attempts while also respecting privacy.

It was super great to listen to this episode, and I always look forward to Tuesday mornings with your podcast. :blush:

I was so excited to share I forgot to mention that I am also with @Exadra37 in hoping you succeed. And curious to see how it will positively impact security in Elixir.

— All posts loaded —

Where Next? Top

Trending in Podcasts Top

PJUllrich
Announcing Macro Mayhem @gus and I have started a new podcast called Macro Mayhem! We cover Elixir news and general industry topics ever...
New
ancatrusca
Sharing the latest BEAM There, Done That episode. This one is genuinely historic - the people who built the JAM and early BEAM, telling t...
New
PJUllrich
Peter and Gus discuss the OTP emergency patches, Gleam Release, the Programming Nerves book update, and more on this week’s Macro Mayhem ...
New
ancatrusca
New BEAM There, Done That with Maxim Kharchenko, creator of Ling - not a BEAM fork, a clean Erlang VM implementation running on Xen with ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews