start	end	text
13780	18580	So, there is latency at every step in the chain, right?
18580	23060	Whether it's the ticket sitting in the queue before the analyst can get to it or the back and forth with the employee.
23380	26260	And then there is toil for the analyst, right?
26260	32480	They're having to go and investigate alerts that often don't have enough context.
32480	34220	They're having to go and talk to employees.
34520	41900	And they're having to deal with the overhead of managing not just this, but like all the other things that are in their queue they have to deal with, right?
41900	43060	So, there's a lot to chase.
43440	52160	So, one of the things that my team built is some basic process automation, wrapping some of this information analysis that goes into investigations.
52400	53400	So, here's an example.
53400	56820	This is a chat bot that we built, creatively named our incident response bot.
57780	67240	So, the way that this works is when the alert goes off, rather than the security engineer reaching out to an employee and saying, hey, it looks like you just made this change.
67240	68980	Did you intend to do this?
68980	74460	We instead have a GPT4 powered Slack bot that will go and do that outreach and that back and forth for us.
75000	77060	It's prompted to be friendly and helpful.
77240	79200	Hey, I'm just looking to get some more information.
79200	82380	It looks like you made this change.
82380	84000	Can you give us some more information about it?
85040	87900	The alert still goes to the security team.
88180	92140	So, a security engineer still looks at the ticket.
92140	98680	But because this bot is there, oftentimes by the time they get to the ticket, it's already prefilled with the context of that back and forth.
99880	102760	And I love this example because it's not very cyber.
102760	104140	This is so boring.
104140	108980	But this is something that every security team at a certain point has to deal with.
108980	111060	How do you scale your operations?
111680	116480	And little bits of this, you know, applications like this can go a long way.
117380	128420	Actually, one thing that we found is in many cases by the time the security engineer gets to the ticket, just the back and forth with the bot has been enough for the employee to realize, oh, actually, I should think about this.
128460	133180	And oftentimes, they've already corrected the condition before we need to intervene.
134540	135920	We've open sourced this.
136040	140860	So, if you want to check it out, we've got a collection of security tools that we've open sourced on GitHub.
142200	145640	So, you can check it out and try it for yourself.
146300	149560	We've also done the same for our bug bounty automation.
150480	152580	Raise your hand if you've ever worked on a bug bounty.
154280	154760	Okay.
154760	157580	Keep your hand raised if you love doing triage.
159000	160680	I see no hands.
161560	162660	It's grueling, right?
162660	165300	You know, you've got a lot of volume, a lot of back and forth.
165760	174280	We've just built some simple automation to help us classify tickets and help us get to the security tickets faster.
174280	176860	We're not making payment decisions or anything like that.
176860	178200	So, don't get any ideas.
179860	190520	But, you know, things like this that help us sort security tickets from customer support and things that just don't belong in the bug bounty so we can get to the things that matter faster.
190680	191480	And that's open source, too.
191480	192260	You can check it out.
193760	194220	All right.
194220	199080	So, those are some, like, pretty, you know, well, I don't think they're boring.
199080	201700	But kind of boring process automation examples.
201700	203380	Let's get to some things that are a little bit more technical.
204080	209960	So, we found that language models like GPT-4 can be pretty useful for command classification.
210380	216420	And this is exciting because detection engineers face tons of toil in their work, right?
216540	221440	And they're often constrained by in a few different dimensions in terms of what they can take on.
221440	225020	Whether it's capabilities, speed, or scale.
225080	232240	So, capabilities might be, you know, access to talent or access to services that can, you know, that can do certain analysis.
233140	237780	Speed is the ability to, you know, get to the alerts that matter fast.
237780	239240	Time can be everything in an incident.
239240	241240	And, you know, speed really matters.
241240	242520	And then lastly, scale.
243160	250920	You know, they're often constrained by the amount of, you know, the operational serviceability of the detections they write.
252480	260620	So, we're able to we found that we're able to use GPT-4 to complement our existing sort of conventional detection strategy.
260620	262680	We're not throwing out the conventional detections.
262680	270940	But we're using this as another sort of, you know, layer of another layer of depth and some more contour in terms of how we do it.
271180	275620	So, we can zero shot command classification.
275620	283560	So, here we're giving it a, you know, a reverse shell and pearl and it's able to make a correct judgment about it being malicious.
283880	285420	And the inverse works, too.
285420	294520	So, we give it a benign operation, something like a media transcoding command, like an FFmpeg call and it's able to classify that as benign.
295080	297280	This works over large datasets, too.
297460	312240	So, you can imagine taking, like, interactive SSH sessions or Bash history or things like that, pumping that through, you know, GPT-4 and having that make triage decisions that might otherwise be out of the reach of your team.
312740	323100	Asking a security analyst to read every line of, like, interactive SSH history or Bash history that's generated in an organization, like, wouldn't just be ineffective.
323100	324600	It would be cruel and unusual.
325920	335000	So, approaches like this can help security teams access more log sources, more depth, and in different ways than they might otherwise be able to get.
335780	338100	So, this is a benign example.
338100	345160	Here on the left, it's, you know, just basically toy Bash history of, you know, like an engineer, an SRE setting up a web server.
345820	348680	So, you know, it's able to kind of analyze this appropriately.
349460	354300	Here's that same history with a little bit of added value sprinkled in.
354300	357680	That command that you see in the second column in bold is a river shell payload.
357900	363960	And you see it's able to pick the needle out of the haystack there and say, you know, this looks like what's going on, except for this.
363960	364720	This looks weird.
364720	367000	You should probably call the security team and have them look at it.
368940	370900	Here's what this looks like at OpenAI.
371320	381600	I mentioned this a little bit earlier, but just to go into a little bit more depth, we use GPT power detections to complement our sort of conventional detection and alerting strategy.
381980	394380	So, we're able to write prompts in natural language that can provide, you know, additional layers of depth and help us sort of access logs that otherwise we might not be able to service with sort of a more conventional approach.
395320	396800	I think this is really exciting.
396800	398080	We're just at the beginning of it.
398100	401020	And I'll reflect more on that at the end.
404570	405030	Cool.
405030	409350	So, here's another example of how we use our models at OpenAI.
409470	412050	And I'm not sure if this video is going to work, but we can give it a shot.
413350	414110	No video.
414110	414850	That's okay.
414950	415830	We're doing it live.
416870	419650	So, if... we tried.
420890	427170	So, yeah, at any organization, your employees are going to need access to resources to do their jobs, right?
427170	429750	Whether it's documents or cloud resources, you name it.
429930	439670	And internal access management is something that companies need to get right in order to facilitate least privilege, you know, the attainment of least privilege access controls.
439930	453170	And the way that most companies do this is they often wind up building either self-service access portals or, you know, different services or automation to facilitate mapping employees or employee requests to resources.
453170	458790	Because otherwise, you wind up with all those going through a central team like the IT team or the security team.
458790	464030	And oftentimes, those teams aren't resourced to, you know, manage these requests at scale.
464030	466870	And also, they're not the right decision-making authority.
467010	477710	Like the IT team probably is not going to have the context to know whether or not the, like, you know, production or like the administrative role that's being requested for your production environment is really needed or appropriate or should be given out.
477930	481310	So we built a tool at OpenAI called Access Manager.
482110	484270	We're creative at naming things, right?
484330	486750	You saw with security bots and Access Manager.
486750	487630	But it's descriptive.
487630	488510	It's sort of this.
488510	490350	It's a self-service access portal.
490350	492470	So it's an internal website you go to.
492770	503670	And through that portal, employees can request to, you know, groups and roles different like IAM resources that bestow access to internal resources.
504370	514470	And the access is both time-bound and requires sort of secondary approval based on, you know, based on the policy of the resource that's being requested.
515190	519750	We've baked GPT-4 into Access Manager to help facilitate role assignments.
520010	530750	So if you're, you know, if you have, like, an error message, you know, if you're in your terminal, and you get some error message, you're not authorized to it, you can dump that error message into Access Manager.
531230	536830	And it will use our models to suggest a resource for you to request access to.
537190	549910	And what's cool about this is without that mapping, without the ability to play that matchmaker, there's a tendency, a natural tendency for developers when they're just trying to get their code to run to request the biggest role that will that's there.
550130	553130	You know, like, oh, this admin role gets me access to everything.
553130	554490	So let me just request that.
554570	561990	But that's, of course, because then you have users that are over permissioned and, you know, sort of defeats the least privileged goals that we want to pursue.
562650	568550	So using GPT-4 to play that matchmaker can help us get that scoping better.
568550	579610	And if you think about the number of access requests over the duration, like, of a company's lifetime, you know, compounding value here really, really adds up to a lot of risk reduction.
580310	582290	So I think that's pretty cool.
582390	587270	Again, not very cyber process automation, but, you know, this stuff can really matter at scale.
588510	590370	And yeah, let's move on.
592510	593010	All right.
593010	594150	This is a fun example.
594890	599230	So we've so language models are good at information analysis.
599230	602050	And that means they can be useful for analyzing threat intelligence.
602930	610030	We've had a lot of fun, you know, doing this both recreationally and, you know, within sort of the scope of our program.
610030	611770	So here's an example.
613010	617290	This is an excerpt from the Conti ransomware group.
617290	619450	I don't know if you remember Conti from a couple of years ago.
619450	630610	They were a criminal group that was going after hospitals and just doing some really nasty and effective ransomware attacks.
631030	639090	They got compromised back in 2022, I want to say, and their internal chat logs got posted on the internet.
639830	646490	We got ahold of them and we ran them through GPT-4 and were able to ask questions of this big data set.
646610	651570	Things like, you know, what kind of companies is this group going after?
651570	653950	What kind of tactics, techniques, and procedures are they using?
653950	656550	If we want to defend against them, what should we look out for?
657010	660710	And it's able to do a pretty good job of giving us some things to look for.
660910	662430	It's a very large data set.
662730	665690	And not only is it big, it wasn't in English.
666070	667450	It was in Russian.
667490	668770	And it wasn't just in Russian.
668770	670570	It was in Russian internet slang.
671890	684430	I have a Russian linguist, native Russian speaker on my team, who had a hard time reading it because of how kind of, you know, internet-y it was.
685570	690130	But, you know, GPT-4 was able to get through it and produce some useful insights from it.
691230	695090	We did the same thing with the ISUN leaks that came out earlier this year.
696290	704870	ISUN was a defense contractor that was suspected as developing offensive security tools for a foreign government.
705610	719410	Their logs went up online, same story, ran through GPT-4 and chatGPT, and were able to, you know, ask questions of it that led us to the insights that we were looking for, which was information about the offensive cyber tools that we're building.
719990	722750	And what's cool about this example is that it wasn't just text.
722750	724990	It was also media.
724990	732370	So some models are multimodal, meaning that in addition to text, they can operate on other media formats like audio and images.
732570	748010	So for this dataset, where we have things like PDFs, network topology diagrams, data sheets, things like that, that multimodality helps us search not just across the text corpus, but all the other types of data that we want to be able to reach within to draw those insights out of.
748010	756570	And just to provide a little bit more context in this example, there were no linguists involved, no translators or anything like that.
756650	761470	This analysis was done by one Australian who speaks English and chatGPT.
762390	776590	So, you know, this is a capability that, you know, I, you know, leading a security team, you know, can, we can now access and do this type of analysis that otherwise would have either been expensive or out of reach or slow or resource intensive.
776590	780470	So extra leverage for us to go in and do our work.
781830	782430	All right.
782430	785950	So language models are really, really powerful.
785990	788010	But they are not without their limitations.
788910	791430	And I'll talk about a few of them here.
791730	796030	The first is that language models just aren't the right tool for every job.
796210	804970	Their general purpose, but just because their general purpose doesn't mean that they are universally applicable or even universally a good idea to use in different scenarios.
806110	812770	And it's just because they, you know, they're good at some things and their capabilities in other domains are still yet to be proven.
813070	825030	And one area that has been hyped, but in my assessment has been a little bit overhyped, has been the ability for language models to aid sort of static analysis and code security.
826110	828050	I used to lead an AppSec team.
828050	835710	And in that capacity, I worked with many of these sort of commercially available and open source static analysis tooling.
835710	837650	And they all kind of left me wanting in different ways.
839450	842490	They can do things like look for CDEs.
842490	846290	They can do things like look for types of bugs you can write regular expression for.
846370	848290	Simple things like that that are general purpose.
848290	865610	But they can't, they couldn't do what I often wanted them to do, which was offer sort of bespoken actionable insights to my developers, something I could put into like a CI CD pipeline, so that when they were writing like business logic bugs, things that they were making decisions about,
865610	868230	I could get that get those insights back to them in real time.
868750	873590	And it's because these like commercial and open source tools, they're written to be sort of general purpose.
873590	891370	And they're not going to be able to understand the sort of internal context of your company, whether it is, your cloud configuration, your developer documentation, things like that, they just don't have access to.
891750	897530	Language models, however, if we look ahead, this is exactly what they should one day be able to do, right?
897530	915070	And just not just the line of code that's being analyzed that contains the, you know, the vulnerable code, but the entire code base, and not just the entire code base, but also your developer documentation, cloud configurations, basically all the context that you can give it to make the best judgment.
916810	920330	So, we've seen some really good research happen in this space.
920410	926170	But we haven't seen sort of the scaled, you know, positive impact that we're hopeful for.
926170	927190	There's some great work going on.
927190	928290	I'll talk about that in a minute.
929390	938470	So, here's an example of like what I... this is a toy example showing proof of life of how these tools could one day become useful for static analysis.
938470	940310	And we can play spot the bug on the left.
940310	942050	This is just some toy code.
942230	944490	And I'll lead you to it.
944490	950070	There's a method that performs a write operation against a database that checks against a reader role.
950070	951930	There's a type of role mismatch there.
952890	958190	In this toy example where we kind of tee it up for GPT-4, it's able to call it out and label the bug.
958910	964990	And can we then take that, you know, knowledge of that vulnerability and use that to generate a fix?
964990	966210	You know, that would be great.
966330	968270	The G in GPT stands for generative.
968270	977690	So, it would be great to be able to use the, you know, like the language model or the code generation capabilities to make, you know, more secure code.
977890	982970	And in this, again, this contrived example, we're able to get it right.
983510	989990	So, how good are language models today and what's next?
990190	996810	That is exactly why I'm excited to be right here with you all today at the AI Cyber Challenge.
996990	999350	This is a phenomenal program that DARP has been running.
999350	1004130	We're proud to be a technology partner to that is exploring exactly this question.
1004310	1011870	What can language models do to improve the security of the code that both we and our critical infrastructure depends on every day?
1012610	1015410	And I am eagerly awaiting the results.
1015630	1020670	I have no idea how teams are doing or what approaches they're taking.
1020670	1022370	I'm here to learn just as you all are.
1022370	1024310	And I think this is just a really exciting moment.
1025190	1029830	So, excited to see what this produces.
1031830	1035550	There are other limitations that we've published sort of extensively on.
1035550	1039510	If you want to know more about this, you can check out the GPT-4 system card.
1039610	1045890	This was a paper that we published along with the GPT-4 release a little bit over a year ago.
1046670	1056510	And it walks through some, you know, sort of limitations, drawbacks of these models and also methodologies for testing, evaluating, and mitigating them.
1057030	1058330	So, you can check that out.
1061630	1066750	We can make some changes to the models themselves to make them more robust and resilient.
1066750	1072750	So, we have a methodology called instruction following or reinforcement learning through human feedback.
1072750	1075990	We're able to train in certain behaviors in the models.
1075990	1083710	So, for example, one thing that we do is we train them to refuse to generate certain types of content if prompted for them.
1083910	1094370	So, you know, if you're asking for things that violate, you know, policies or, you know, are harmful or, you know, against whatever policy you train into them, we can build some guardrails in the model.
1094970	1096730	These guardrails are not a silver bullet.
1096730	1097490	They're imperfect.
1097590	1102830	They can be defeated with different techniques like jailbreaking and, you know, sort of prompt injection and things like that.
1102890	1105190	But they do provide, you know, a layer of depth.
1105190	1109370	And there's been a ton of great research into how to make these guardrails even better.
1109710	1118030	There's a paper that we put out a few weeks ago on it's called Instruction Hierarchy, which is a new approach.
1118030	1123030	And it was done by some great great work from our safety systems researchers at OpenAI, our colleagues there.
1125050	1127590	And also from beyond our four walls, too.
1127590	1133930	This is a topic that's sort of being actively explored by the community and I expect will continue to improve.
1136090	1143070	And where sort of refusals and sort of the upfront mitigation doesn't work, sometimes you have to rely on good old-fashioned enforcement.
1143390	1144830	And we do that, too.
1145030	1162450	So earlier this year, we published a report that we did in collaboration with Microsoft's, with Mystic, their Threat Intelligence Center, where we were able to identify and disrupt five different state affiliated threat actors who were using AI for various purposes.
1162670	1170370	And we published a pretty extensive blog post and then Microsoft published one, too, sort of on what we found, who the actors were, et cetera.
1171330	1176410	And we've done some more work since then and we're going to keep doing this because we believe in it.
1176410	1182150	And we're sharing these insights because we want the community to learn from what we're seeing, right?
1182150	1190750	A more secure ecosystem is supported by information sharing and by collaboration and it's something that we're very happy to support and we believe in.
1193420	1194040	All right.
1194040	1200820	So, you know, presumably we're here at DEF CON, you all are hackers, you're all going to use these tools for different purposes.
1200820	1206080	I wanted to impart some tips on how to, you know, use them responsibly.
1206120	1213300	When I tell people that, you know, we use our tools within our security program, reaction either goes one or two ways.
1213300	1223680	Other people think it's cool and they want to know more about it or that they're just like aghast that we could think about using a tool like a language model in a scenario like security.
1224100	1241380	But we found that we're able to, you know, mitigate a lot of the downsides that you might come to expect with these tools through what we apply them to and how we constrain them so that we can capitalize on their upsides and also sort of have the guardrails around,
1241380	1247740	you know, when they don't get things perfectly right or, you know, sort of work around the limitations here.
1248800	1257280	So, the first tip is, oh, and by the way, just to put the accordingly.
1257540	1259260	All the best practices still apply.
1259260	1261860	So, that is what these recommendations are derived from.
1262140	1264220	So, the first is, you know, sanitize your inputs.
1264340	1271800	If you're taking input from a user and you're actuating against, like, you know, a system or sensitive data or things like that, think of it just like SQL, right?
1271800	1276740	You wouldn't take raw SQL from, you know, one of your users and just, you know, execute it, right?
1277200	1282200	You'd validate it, you'd sanitize it, you'd do something to make sure that it's safe to execute and constrain it.
1282200	1283440	So, that's one.
1283920	1289800	The second is we've found that these tools are useful and we can mitigate a lot of the downsides if we keep humans in the loop.
1289980	1298080	So, many of the examples that I showed you earlier, the access manager example I told you about, the way that we are incorporating models into our incident response process.
1298160	1305840	The model is able to do a lot of the legwork to remove the toil from the work, but we still have a security engineer who is validating the decisions the model's making.
1305840	1310440	And in many cases, this is the one who's actually making the actuating decision on the back end of it.
1310440	1314580	So, models assisting humans can be very, very powerful.
1314660	1321980	It mitigates a lot of the risk of a model either, you know, hallucinating a wrong answer or, you know, getting something wrong.
1322580	1326900	And the third is just remember that language models just aren't going to be the right tool for every job.
1326900	1329180	So, don't try to force a square peg into a round hole.
1329380	1335660	If your workflow requires being correct 100% of the time in an eyes-off way, language models are probably not the tool for you.
1335660	1336480	At least not yet.
1336480	1340440	Like, maybe they'll get better and they'll become fit for purpose for that one day.
1340440	1345200	But just know your use case and design accordingly.
1347810	1356750	Just to close, I'm going to take a quick look at what's coming to share what I've seen having been in this seat for the last four years.
1357930	1370530	So, if we look back over different model families that have developed, whether it's GPT-3 to 4, as models have gotten bigger and more capable, new security capabilities have become unlocked as they've gotten.
1370910	1385870	So, the way that I would characterize this is that while GPT-3 family of models had sort of knowledge they knew enough to be convincing, GPT-4 is where we actually saw the capabilities step up to the point where we could really start to use them and where things started getting very exciting.
1386670	1388470	And I expect this will continue, right?
1388470	1393630	I think what we learned this weekend is going to shed some light on this as well.
1394210	1400770	Static analysis is sort of one of the security use cases that we haven't seen models become amazing at yet.
1400770	1403970	And maybe this will be the step towards the next frontier.
1403970	1405010	I'm very excited.
1406450	1410590	At OpenAI, we are actively investing in security research.
1410590	1412930	We do security research internally within our team.
1412930	1421550	We also are looking to activate the security research community to work on what is this very important frontier of security research.
1421790	1440010	So, to that end, we have our cyber security grant program where we're giving out in aggregate a million dollars and then API credits to security researchers who want to work on defensive research on defensive applications of LLMs and on AI security problems.
1440750	1453050	And again, our mission here is really to empower defense, help get these tools, help understand their capabilities and get them in the hands of defenders, understand their limitations too.
1453050	1455330	So, if you are interested, please apply.
1455550	1458870	If you know anybody who might be interested, please tell them.
1458870	1462450	And if you want to know more about this, I'll be hanging out here down here after.
1462450	1463450	You can come talk to me.
1467350	1470770	We're also deeply invested in protecting these tools.
1470910	1480990	We believe that conventional security controls can enable robust defense, but this is a new form of software and we're looking wide in terms of all the tools you can bring to bear to protect them.
1481490	1483350	So, we wrote a blog post on this that you can check out.
1483350	1492490	It talks about things like trusted computing for GPUs, advances in data center security, and then some more policy support that we're excited about.
1492490	1500590	Things like new compliance regimes and whatnot that together can give us some more tools in the quiver to protect language models.
1501810	1502450	All right.
1502450	1503630	So, we're almost at the end here.
1503630	1511650	Just to recap, we've covered how language models can help security teams as illustrated by how we're using these tools within our program at OpenAI.
1512950	1520330	I hope this has given you some ideas if you work on a security team to bring back and start to think about how you might be able to get some leverage out of these tools.
1521330	1523650	And remember, we're just at the beginning, right?
1523770	1528210	The space is moving so fast that everything that we just covered could be disrupted.
1528330	1533990	And I expect it will, because the research community is very, very involved.
1533990	1538190	And we've just seen so much growth in the last couple years.
1538190	1540130	GPT-3 came out in 2020, right?
1540130	1543970	It feels like it's been around forever, but that was only four years ago.
1544170	1546950	So, stay tuned.
1548190	1551450	I want to end by acknowledging my team at OpenAI.
1551450	1556530	I am so fortunate to be associated with not just the people here, but the entire team.
1558370	1562230	I'm in it to be able to serve them in the small way that I can.
1562550	1563770	We're also hiring.
1563770	1570590	So, if you're, you know, looking for a job, you want to come work on AI and security, please consider applying.
1571050	1580510	I also want to give a shout out to Mystic for their collaboration on the disruption work and all of our cyber grant program participants for working with us on this.
1581290	1582330	Thanks a lot.
1582350	1583810	I'll be down here if you want to talk.
1583810	1584850	Enjoy DEF CON.
1584850	1585510	Thanks, everybody.
