AIAI EngineerJul 29, 2026· 16:24

We Vetted 2000 AI Skills Before They Reached Developers — Lucas Palma, Nubank

Lucas Palma, product security manager at Nubank, explains how his team built Skill Vector to vet AI skills as supply chain risks inside a regulated bank, scanning over 2,000 skills before they reached developers. The tool uses a hybrid approach: deterministic checks catch destructive shell commands and credential requests, then an LLM reviews behavioral context missed by patterns. Across 2,000 skills, the system identified more than 1,500 risks, with 1,000 remediated immediately and a few blocked entirely from the internal marketplace. Key lessons include treating skills like any dependency, running local scans alongside CI enforcement, and requiring proper human-in-the-loop approval rather than AI self-confirmation. Palma also applies the same gates to MCP servers, rules, and third-party plugins, pushing for a trusted canonical marketplace where every entry is scanned before distribution.

Transcript

Intro0:00

Lucas0:13

Hello everyone, good afternoon. Today I'm going to talk about how we vetted 2,000 AI skills before they reached developers. But before I— before that, I'm Lucas Palma, but many people call me LP. I'm the Product Security Manager at Nubank, the product security structures—uh, structure that's within security, looking upon how we make code safe and supporting engineers, product managers, and everybody into making our products safer.

I have over a decade of experience in financial services, engineering background, also a lot of years working here at security, and a close relationship with the part that I love, which is innovation. So, before beginning, I believe I want to bring to you—uh—why are we here.

So one thing that's important for all of you to understand is that the now that we are using AI everywhere, even though—even with coding, one thing that is important is that the AI skills are being part of the developer workflow, and this might bring some risks because although they look like configuration, they behave like supply chain dependents, like, for example, libraries and others.

Supply Risk1:32

Lucas1:47

So what we made here was to build a security review system in order to check if these skills were safe or not to be used before deploying them. So the lesson that I want to bring you here by the end of this presentation is that we should be protecting the whole workflow, not only the code that's being generated.

Allright. So what I mean about the supply chain part is that, traditionally, the supply chain has packages, containers, models, and so on, but now in the AI era it doesn't have only that. It still has the traditional part, but it will—it also includes skills, plugins, MCP servers, agent rules, and much more things to be acting as supply chain.

And where AI skill fits into this,

I believe that before going into that, it's important for everybody to be on the same page on what is an AI skill. So an AI skill has—there's a—normally the developer is using AI tools in order to generate an output, which will be code in most of the cases, and within this AI tool there are a bunch of things that can be embedded.

Defining Skills2:50

Lucas3:11

One of them are the AI skill. So with this skill we can have a capability to a model or to an agent bundling some instructions, some context, in order to have better guidance over what it can be done.

But there is also an impact over that because somebody can create their own skill and share with others. So when we do that, this first person is guiding over the code that's being generated by the other person, and then that can be dangerous.

And since we are here talking the AI and finance track, it's also important for us to understand that we are in a regulated environment. So from one side, there are developers wanting better, faster coding, more context, to have less repetitive work.

Regulated Reality3:57

Lucas4:10

But from the other side, even more because of the regulate part, we need to be aware of the auditability, of looking upon credentials, safety by default, and many other security aspects.

And keeping that balance is hard,right. So some people might say, like, "Are AI skills dangerous?" So I brought here a few examples of what do I mean by AI skills being dangerous. So first, one thing that can happen is that when people are describing what the skill can or cannot do, it can—it can ask for it to retrieve a token or something, and it will begin using that token hard-coded, which will go to logs and so on, and it can generate a data leak in the future.

Another thing that can happen is also the person to instruct the AI to use shell comments, and then this skill will be used by another person, and when they use on their shell, a lot of dangerous things that can happen, and a lot of files being modified, and so on.

And there's also permissions. So depending on how the skill was configured, it might have excessive permissions, much more than what was needed, and even a typo can make some dangerous stuff depending on who is using that such skill.

So first thing first, what we did initially is that how do we share skills among ourselves, how the engineers will be sharing these skills. So we went through the marketplace solution. So the skills are being canonically shared among a marketplace with the plugins included the skills among them.

Marketplace Gate6:07

Lucas6:13

So it's an internal marketplace where people can discover new skills, and that's our boundary where we are trying to make it safer. So what happens is that when someone creates an skill, it will open the pull request, and normally it will go to the marketplace.

But we made a step before that, like a CI step, where we created a tool that's called Skill Vector, and this is—this what this tool does is to check if this skill is safe or not to be used, using a lot of assessments that I will be bringing here, and also classify those risks, and request remediation, and so on.

Skill Vector6:58

Lucas6:59

So what Skill Vector does in a single page is that when a skill is created or changed, not only during the creation phase, one thing that's important is that the engineers are able to use it locally and also be iterating until the skill is being considered safe before uploading it.

And after them upload the skill, we also runs it again because we can ensure that the engineer has run locally or has run the most updated version. So we also be scanning that after the upload, and then we have some determinate checks for the easiest parts to check some easy risks using regular expressions and so on.

Hybrid Checks7:37

Lucas7:49

After that, when we check that we need better context, we then use LLM. It's important to have this hybrid approach with LLM checking the context, but also with the determinist, because you know how LLM is, depending on the temperature that was set, sometimes it will check that it's a risk, sometimes it might not.

And then all of these findings are reporting the PR that was open to upload the skill, so it will improve the usability since the engineer will have the in the same PR what has to be changed before uploading the skill.

And another good thing that we made that's important is to have a serif with all of these so it can be consumed by our security tools as well, and generate a report on the risks, and be part of our vulnerability management program.

So depending on the severity, depending on the policy, the skill can require some remediation, can be blocked, all of this before the marketplace distribution.

So there's the local scan, the pull request, the determinate scanner, then there's the LLM review, PR feedback, serif, and then the decision: will we use it, will we allow it, will we allow it but it requires remediation, and so on.

A few examples of what we have scanned here, it's a non-exhaustive list, so we are looking upon if there are some unsafe instructions, if there are some drift within the behavior that the agent has, if there are some destructive shell comments that I commented earlier, if there are some file modifications that shouldn't be there, credential requests, how are they being done, some data being exposed unintentionally, if there are permissions that are overbroad, risky, MCP usage, and much more.

These are the main ones.

And so, getting back to the title, we have scanned on that over 2,000 skills. Now there is much more than that, but this is the baseline that I brought for you on this presentation. Inside this we have identified more than 1,000 and a half

2000 Scanned10:00

Lucas10:21

risks. So not that 1,000 and a half skills had risk, because a single skill can has many risks, but these were the total risks that we identified over this amount of skills, and 1,000 of them were probably remediatedright after.

And there are a few of them that were really risky that we were able to block before going to the marketplace. So we also had made a historical scan looking upon the skills that were created before the skill vetted being implemented, and over there we were able to identify new risks as well and put them into the vulnerability management program so it can be could be remediated.

A few lessons that I want to bring here as well. So

Lessons Learned11:22

Lucas11:23

things that worked well is having both the determinist scanners for non-risk patterns, but also LLM review for behavior, checking upon the destructive comments, looking upon the credential checks as well, having the output in serif, and adding comments on PRs, and things that needed improvement and we worked during the process were also there were some risks like comments that we were treating equally, but depending on the comment it can be more or less risky.

Also some signals that were weak and didn't have much context that were more troublesome than helpful. There is also the prompt level ask for confirmation. There is a next slide about that that I will go deeper. That's an important one.

Also

there were some warnings that seemed harmless, but only if it was running locally. If they were going to production then they could be impactful, and we had also to look upon that if the finding hadn't some clear guidance was troublesome as well.

And last but not least, we know that other people could create other marketplace, so how can we proactively scan, check there is a new marketplace, and put Skill Vector into it as well. So regarding the prompt level, that's something that's important for you to know.

People sometimes will add the instruction like you need to ask for confirmation, but the AI may ask confirmation for itself. So from your perspective there is a human in the loop, but for the AI perspective there is has been a confirmation and that's okay, another AI has confirmed and let's go.

So that's something that we were scanning as well, looking upon having proper human in the loop, looking in the tool that's executing, if it's going through the approval gates, and so on. Having hooks.

Approval Gates13:30

Lucas13:37

And within this, as I said, it's a plugin marketplace skill is one, among many things that there is into that. So there are things that we can reuse from this lesson. So for example, treating these as supply chain is important, reviewing what's being uploaded to the marketplace before it goes there, letting developers to run these checks locally, enforcing these checks that are being run locally also in the CI, having determinist checks together with the LLM checks, looking upon dangerous actions and prompting, and having enforcement when they happen.

Next Steps14:23

Lucas14:24

So next steps over here is that I'm talking a lot about skills here, but a lot of these, as I said, could be applied to plugins, to MCP servers, rules, hooks. So all of this that I'm saying here, we also have the MCP vetted, the rules checks, and so on.

That's also applicable here but with different risks. Having also different gates depending on policies that we're implementing depending on the marketplace as well. Having some enforcements on tool level here, enforcing that there are audit logs, trusted gateways, and so on.

And also last but not least, having the trusted AI marketplace is very important so we can have a canonical way to scan and share, knowing that then are being safe. And that's not about only about the skills that are being created by people, but it also includes the third-party skills or plugins and so on.

So if someone downloads something and wants to use, it's important to upload it on the marketplace so all of this scanning can be done and check if it's safe or not to be used, and also that way allow other people to use in a safe way.

And that's it. I'm sharing here my contact. There is my LinkedIn profile. If anybody wants to contact, talk more about that, the QR code will bring you to my profile. If you don't want to type, no problem at all.

And I hope you've enjoyed the talk.