homepage
Open menu
Contact Sales
Go one level top
  • Train and Certify
    Free Course Demos

    Free course demos allow you to see course content, watch world-class instructors in action, and evaluate course difficulty.

    Train and Certify
    Immediately apply the skills and techniques learned in SANS courses, ranges, and summits
    Learn More
    • Overview
    • Courses
      • Overview
      • Full Course List
      • By Focus Areas
        • Cloud Security
        • Cyber Defense
        • Cybersecurity and IT Essentials
        • DFIR
        • Industrial Control Systems
        • Offensive Operations
        • Management, Legal, and Audit
      • By Skill Levels
        • New to Cyber
        • Essentials
        • Advanced
        • Expert
      • Training Formats
        • OnDemand
        • In-Person
        • Live Online
      • Free Course Demos
    • Training Roadmaps
      • Skills Roadmap
      • Focus Area Job Roles
        • Cyber Defense Job Roles
        • Offensive Operations Job Roles
        • DFIR Job Roles
        • Cloud Job Roles
        • ICS Job Roles
        • Leadership Job Roles
      • NICE Framework
        • Security Provisionals
        • Operate and Maintain
        • Oversee and Govern
        • Protect and Defend
        • Analyze
        • Collect and Operate
        • Investigate
        • Industrial Control Systems
      • European Skills Framework
    • GIAC Certifications
    • Training Events & Summits
      • Events Overview
      • In-Person Event Locations
        • Asia
        • Australia & New Zealand
        • Latin America
        • Mainland Europe
        • Middle East & Africa
        • Scandinavia
        • United Kingdom & Ireland
        • United States & Canada
      • Live Online Events List
      • Summits
    • OnDemand
    • Get Started in Cyber
      • Overview
      • Degree and Certificate Programs
      • Scholarships
      • Free Training & Resources
    • Cyber Ranges
  • Enterprise Solutions
    New Cyber Trends & Training in 2023

    This eBook offers a glimpse into the key threats that are expected to emerge as forecasted by SANS experts.

    Enterprise Solutions

    Build a world-class cyber team with our workforce development programs.

    Learn More
    • Overview
    • Group Purchasing
    • Build Your Team
      • Assessments
      • Private Training
      • By Industry
        • Health Care
        • Industrial Control Systems Security
        • Military
    • Leadership Training
      • Leadership Courses
      • Executive Cybersecurity Exercises
  • Security Awareness
    2023 Security Awareness Report

    Empowering Security Awareness teams with industry benchmarking, program growth, and career development.

    Security Awareness
    Increase your staff’s cyber awareness, help them change their behaviors, and reduce your organizational risk
    Learn More
    • Overview
    • Products & Services
      • Security Awareness Training
        • EndUser Training
        • Phishing Platform
      • Specialized
        • Developer Training
        • ICS Engineer Training
        • NERC CIP Training
        • IT Administrator
      • Risk Assessments
        • Knowledge Assessment
        • Culture Assessment
        • Behavioral Risk Assessment
    • OUCH! Newsletter
    • Career Development
      • Overview
      • Training & Courses
      • Professional Credential
    • Blog
    • Partners
    • Reports & Case Studies
  • Resources
    Security Policy Templates

    In collaboration with security subject-matter experts, SANS has developed a set of security policy templates for your use.

    Resources
    Enhance your skills with access to thousands of free resources, 150+ instructor-developed tools, and the latest cybersecurity news and analysis
    Browse Here
    • Overview
    • Webcasts
      • Webinars
      • Live Streams
        • Wait Just An Infosec
        • Cybersecurity Leadership
        • SANS Threat Analysis Rundown (STAR)
    • Free Cybersecurity Events
      • Free Events Overview
      • Summits
      • Solutions Forums
      • Community Nights
    • Content
      • Newsletters
        • NewsBites
        • @RISK
        • OUCH! Newsletter
      • Blog
      • Podcasts
        • Blueprint
        • Trust Me, I'm Certified
        • Cloud Ace
        • Wait Just an Infosec
      • Summit Presentations
      • Posters & Cheat Sheets
    • Internet Storm Center
    • Research
      • White Papers
      • Security Policies
    • Tools
    • Focus Areas
      • Cyber Defense
      • Cloud Security
      • Digital Forensics & Incident Response
      • Industrial Control Systems
      • Cyber Security Leadership
      • Offensive Operations
      • Open-Source Intelligence (OSINT)
  • Get Involved
    Join the Community

    Membership of the SANS.org Community grants you access to cutting edge cyber security news, training, and free tools that can't be found elsewhere.

    Get Involved
    Help keep the cyber community one step ahead of threats. Join the SANS community or begin your journey of becoming a SANS Certified Instructor today.
    Learn More
    • Overview
    • Join the Community
    • Work Study
    • Teach for SANS
    • CISO Network
    • Partnerships
    • Sponsorship Opportunities
  • About
    Our Mission

    To empower current and future cybersecurity practitioners around the world with immediately useful knowledge and capabilities, we deliver industry-leading community programs, resources and training.

    About
    Learn more about how SANS empowers and educates current and future cybersecurity practitioners with knowledge and skills
    Learn More
    • SANS
      • Overview
      • Our Founder
      • Awards
    • Instructors
      • Our Instructors
      • Full Instructor List
    • Mission
      • Our Mission
      • Diversity
      • Scholarships
    • Contact
      • Contact Customer Service
      • Contact Sales
      • Press & Media Enquiries
    • Frequent Asked Questions
    • Customer Reviews
    • Press
    • Careers
  • SANS Sites
    • Australia
    • Brazil
    • France
    • India
    • Japan
    • Middle East & Africa
    • Singapore
    • United Kingdom
  • Log In
  • Join
    • Account Dashboard
    • Log Out
  • Contact Sales
  1. Home >
  2. Blog >
  3. Leveraging Artificial Intelligence (AI) to Manage Human Risk: Part 2 – Generative AI Basics
370x370_Lance-Spitzner.jpg
Lance Spitzner

Leveraging Artificial Intelligence (AI) to Manage Human Risk: Part 2 – Generative AI Basics

This second blog in the ongoing series gives and overview of Generative AI and prompt engineering.

October 20, 2023

Note: This blog post is the second in a series on AI and how to leverage it managing and measuring your Security Awareness, Culture and Human Risk efforts.  This post introduces you to Generative AI. In this post I use ChatGPT as the example but similar Generative AI solutions include Google Bard and Microsoft Bing.  To learn more about AI,  Generative AI and the different sub-fields, I recommend you first read this blog post which provides an overview.

What is Generative AI?

Generative AI is the type of AI you are most likely going to use, it is what creates new resources for you.  Examples of Generative AI include solutions that create imagery, videos, sound, documentation, project plans and business cases; answer questions, translate content or, in many ways, process and respond to information just like a human. It is this capability that exponentially increases the impact of your actions and accelerates your career, while saving you time and money.

Prompt Engineering

Generative AI works by you providing an input and it provides an output. The key to leveraging Generative AI is knowing how to ask or tell it what you want, that is called the prompt. Prompt engineering is your ability to ask effective prompts. Here is how the company OpenAI describes prompts:

OpenAI's GPT (generative pre-trained transformer) models have been trained to understand natural language and code. GPTs provide text outputs in response to their inputs. The inputs to GPTs are also referred to as "prompts". Designing a prompt is essentially how you "program" a GPT model, usually by providing instructions or some examples of how to successfully complete a task.

The first thing you need to understand is Generative AI is not a search engine. Instead, it’s like talking to a trusted subject matter expert (SME), just like you would to another person. How I often leverage Generative AI is not for it to create the content I want, but to have it help give me ideas or options I did not think of, review content I’ve created, or explain concepts to me that I do not understand.  For example, one of the best ways to better understand AI is ask it with this very simple prompt:

What is Artificial Intelligence and the sub-fields that make it up?

For this blog post I’m going to start with the Generative AI known as ChatGPT, owned by the company OpenAI.  There are hundreds of other Generative AI solutions, and I’ll be covering some of those in future blog posts.  However, ChatGPT is one of the most well-known, easiest to use and, in many cases, one of the most versatile and useful. If you do not have an account with ChatGPT, I suggest you create a free account and start playing with it.

Now, back to prompt engineering. As covered, prompt engineering is the art of asking Generative AI what you want. The better you formulate your prompt, the more useful the response.

Let’s start with a simple example. Say you need to create a script for a short video explaining what Vishing is and demonstrating how your workforce can easily identify Vishing attacks. What you would NOT want to do is enter this as a prompt:

Create me a script on how to detect Vishing attacks.

While that is what you are looking for, ChatGPT will have very little guidance or context. The same could be said if you asked a cybersecurity SME the same question; they would not have enough context to truly help you. ChatGPT will do it, but the script may not be the length you want, it may not include the action items you are looking for, or use the voice or tone you want. These are the key elements you need in any prompt:

Context + The Ask + Output Format = Effective Prompt

Context:  Provide ChatGPT context, just like you would any SME you are dealing with. In the case of writing this video script, perhaps something like this:

I’m a security awareness officer for my company.  We are in the financial industry and concerned that we are becoming more and more targeted with Vishing attacks.  I need your help in creating a script for a short video that explains Vishing to my workforce.

The Ask: Provide details on what you are looking for.  The more specific you are the better the results. The nice thing here is you can be very specific. AI is very patient; you are not going to bore or irritate them with all your specific asks.

In this video be sure to explain what Vishing is, what makes the attack so dangerous and the top five most common ways you can detect it. Make sure one of the ways to detect includes a strong sense of urgency.

Output Format: This is the real power of ChatGPT. You can then explain how you want the output.  Do you want to limit the words, limit the time? Do you want the output as bullet points or as a table? Do you want it detailed or overviewed? Do you want highly technical language or simplified? You can be as demanding as you want, ChatGPT will never get frustrated with you.

Be sure to keep the script simple to understand and write it at a 9th grade level. Ensure that the video is no longer than 2 minutes long.

This is what your final prompt could look like.

I’m a security awareness officer for my company.  We are in the financial industry and concerned that we are becoming more and more targeted with Vishing attacks.  I need your help in creating a script for a short video on Vishing. In this video be sure to explain what Vishing is, what makes the attack so dangerous and the top five most common ways you can detect it. Make sure one of the ways to detect includes sense of urgency. Also, be sure to keep the script simple to understand and write it at a 9th grade level.  Ensure that the video is no longer than 2 minutes long.

Go ahead, try it out!  Pretty cool, huh?  Now this is where things get really interesting.  For your next prompt, type something like this:

Okay, do it all over again but in Japanese.

This follow-on prompt demonstrates several powerful features of Generative AI solutions like ChatGTP. Just like a real person, AI can remember context. It remembers the previous query you had and the resulting output, which you can follow-up on. This is just like a normal conversation with a real person. The second thing is ChatGPT is not limited to just English but understands and translates into almost any language, and it does it surprisingly well.  Remember, Generative AI solutions like ChatGPT learn from billions of conversations of regular people, so it can translate and replicate normal conversations.   

Some Additional Tips

As you begin your path in prompt engineering, here are a few more tips.

  • Spelling: Try to keep your spelling as accurate as possible. While AI solutions are good at inferring what you mean, the more spelling mistakes you make the more likely the output will be distorted or wrong.  Many AI solutions have auto-correct solutions built in to help you.
  • Be Specific: Treat ChatGPT as a trusted and very patient friend. The more detailed and explicit you are, the more likely you will get useful results that you can act on.
  • Follow-up: If you don’t find the output helpful, follow-up with more questions and more detailed prompts.  Remember, AI maintains context of the discussion.
  • Emotionless: At times I feel like I’m interacting with a real human, and I hold back, not wanting to overwhelm the AI solution (especially when creating long or demanding prompts). I have to remind myself that I’m working with technology and not a person; I can be as demanding as I want in my prompts.

The folks at OpenAI have a fantastic tutorial on the six strategies (with detailed examples) of how to create more effective prompts. If you are a more visual person, Microsoft Bing has a list of examples for prompts. 

In future posts I’ll go into far greater detail with examples of prompts you can use in accelerating your Security Awareness, Culture and Human Risk Management programs, including how to create, review, and improve newsletters and infographics, generate engagement plans leveraging marketing frameworks, identify key behaviors and mapping them to behavior models, create full-blown project plans and business cases, analyze slides, graphs or images, etc. However, before all of that, in the next post I would like to first cover the gotchas of Generative AI, to include legal, security, and reliability issues.

Share:
TwitterLinkedInFacebook
Copy url Url was copied to clipboard
Subscribe to SANS Newsletters
Receive curated news, vulnerabilities, & security awareness tips
United States
Canada
United Kingdom
Spain
Belgium
Denmark
Norway
Netherlands
Australia
India
Japan
Singapore
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius, and Saba
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Cook Islands
Costa Rica
Croatia (Local Name: Hrvatska)
Curacao
Cyprus
Czech Republic
Democratic Republic of the Congo
Djibouti
Dominica
Dominican Republic
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Heard And McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
Indonesia
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea, Republic Of
Kosovo
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Liechtenstein
Lithuania
Luxembourg
Macau
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States Of
Moldova, Republic Of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Macedonia
Northern Mariana Islands
Oman
Pakistan
Palau
Palestine
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Bartholemy
Saint Kitts And Nevis
Saint Lucia
Saint Martin
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
South Africa
South Georgia and the South Sandwich Islands
South Sudan
Sri Lanka
St. Helena
St. Pierre And Miquelon
Suriname
Svalbard And Jan Mayen Islands
Swaziland
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Virgin Islands (British)
Virgin Islands (U.S.)
Wallis And Futuna Islands
Western Sahara
Yemen
Zambia
Zimbabwe

By providing this information, you agree to the processing of your personal data by SANS as described in our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Recommended Training

  • SEC595: Applied Data Science and AI/Machine Learning for Cybersecurity Professionals

Tags:
  • Security Awareness
  • Security Management, Legal, and Audit

Related Content

Blog
_Which_human-focused_cybersecurity_course_is_best_for_me_340x340.jpg
Security Management, Legal, and Audit
November 17, 2023
Which Human-Focused Cybersecurity Course is Best for Me?
Examine the differences between the LDR433: Managing Human Risk course and LDR521: Security Culture for Leaders course.
370x370_Lance-Spitzner.jpg
Lance Spitzner
read more
Blog
SSA_-_Blog_-_Leveraging_AI_to_Manage_Human_Risk_–_(Part_1)_-_340x340.jpg
Security Awareness, Security Management, Legal, and Audit
October 12, 2023
Leveraging AI to Manage Human Risk – (Part 1)
Learn how to amplify and improve your human risk management program using AI
370x370_Lance-Spitzner.jpg
Lance Spitzner
read more
Blog
SSA_-_Blog_-_Building_the_Human_Risk_Dream_Team_-_340x340.jpg
Security Management, Legal, and Audit, Security Awareness
September 22, 2023
Building the Human Risk Dream Team
Managing human risk is a team effort.
370x370_Lance-Spitzner.jpg
Lance Spitzner
read more
  • Register to Learn
  • Courses
  • Certifications
  • Degree Programs
  • Cyber Ranges
  • Job Tools
  • Security Policy Project
  • Posters & Cheat Sheets
  • White Papers
  • Focus Areas
  • Cyber Defense
  • Cloud Security
  • Cybersecurity Leadership
  • Digital Forensics
  • Industrial Control Systems
  • Offensive Operations
Subscribe to SANS Newsletters
Receive curated news, vulnerabilities, & security awareness tips
United States
Canada
United Kingdom
Spain
Belgium
Denmark
Norway
Netherlands
Australia
India
Japan
Singapore
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius, and Saba
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Cook Islands
Costa Rica
Croatia (Local Name: Hrvatska)
Curacao
Cyprus
Czech Republic
Democratic Republic of the Congo
Djibouti
Dominica
Dominican Republic
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Heard And McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
Indonesia
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea, Republic Of
Kosovo
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Liechtenstein
Lithuania
Luxembourg
Macau
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States Of
Moldova, Republic Of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Macedonia
Northern Mariana Islands
Oman
Pakistan
Palau
Palestine
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Bartholemy
Saint Kitts And Nevis
Saint Lucia
Saint Martin
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
South Africa
South Georgia and the South Sandwich Islands
South Sudan
Sri Lanka
St. Helena
St. Pierre And Miquelon
Suriname
Svalbard And Jan Mayen Islands
Swaziland
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Virgin Islands (British)
Virgin Islands (U.S.)
Wallis And Futuna Islands
Western Sahara
Yemen
Zambia
Zimbabwe

By providing this information, you agree to the processing of your personal data by SANS as described in our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
  • © 2023 SANS™ Institute
  • Privacy Policy
  • Terms and Conditions
  • Do Not Sell/Share My Personal Information
  • Contact
  • Careers
  • Twitter
  • Facebook
  • Youtube
  • LinkedIn