homepage
Menu
Open menu
  • Training
    Go one level top Back

    Training

    • Courses

      Build cyber prowess with training from renowned experts

    • Hands-On Simulations

      Hands-on learning exercises keep you at the top of your cyber game

    • Certifications

      Demonstrate cybersecurity expertise with GIAC certifications

    • Ways to Train

      Multiple training options to best fit your schedule and preferred learning style

    • Training Events & Summits

      Expert-led training at locations around the world

    • Free Training Events

      Upcoming workshops, webinars and local events

    • Security Awareness

      Harden enterprise security with end-user and role-based training

    Featured

    Get a Free Hour of SANS Training

    Free Course Demos

    Can't find what you are looking for?

    Let us help.
    Contact us
  • Learning Paths
    Go one level top Back

    Learning Paths

    • By Focus Area

      Chart your path to job-specific training courses

    • By NICE Framework

      Navigate cybersecurity training through NICE framework roles

    • DoDD 8140 Work Roles

      US DoD 8140 Directive Frameworks

    • By European Skills Framework

      Align your enterprise cyber skills with ECSF profiles

    • By Skills Roadmap

      Find the right training path based on critical skills

    • New to Cyber

      Give your cybersecurity career the right foundation for success

    • Leadership

      Training designed to help security leaders reduce organizational risk

    • Degree and Certificate Programs

      Gain the skills, certifications, and confidence to launch or advance your cybersecurity career.

    Featured: Solutions for Emerging Risks

    New to Cyber resources

    Start your career
  • Community Resources
    Go one level top Back

    Community Resources

    Watch & Listen

    • Webinars
    • Live Streams
    • Podcasts

    Read

    • Blog
    • Newsletters
    • White Papers
    • Internet Storm Center

    Download

    • Open Source Tools
    • Posters & Cheat Sheets
    • Policy Templates
    • Summit Presentations
    • SANS Community Benefits

      Connect, learn, and share with other cybersecurity professionals

    • CISO Network

      Engage, challenge, and network with fellow CISOs in this exclusive community of security leaders

  • For Organizations
    Go one level top Back

    For Organizations

    Team Development

    • Why Partner with SANS
    • Group Purchasing
    • Skills & Talent Assessments
    • Private & Custom Training

    Leadership Development

    • Leadership Courses & Accreditation
    • Executive Cybersecurity Exercises
    • CISO Network

    Security Awareness

    • End-User Training
    • Phishing Simulation
    • Specialized Role-Based Training
    • Risk Assessments
    • Public Sector Partnerships

      Explore industry-specific programming and customized training solutions

    • Sponsorship Opportunities

      Sponsor a SANS event or research paper

    Interested in developing a training plan to fit your organization’s needs?

    We're here to help.
    Contact us
  • Talk with an expert
  • Log In
  • Join - it's free
  • Account
    • Account Dashboard
    • Log Out
  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. You can access the other blog posts from this series below.

  • Part 1: Overview of AI
  • Part 2: Generative AI & Prompt Engineering
  • Part 3: Issues, Challenges, and Limitations of AI
  • Part 4: Advanced Prompt Engineering
  • Part 5: Generating Images
  • Part 6: Analyzing Data

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
Cote D'ivoire
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
Eswatini
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
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania, United Republic Of
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 State
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

  • SEC660: Advanced Penetration Testing, Exploit Writing, and Ethical Hacking™
  • SEC598: Security Automation for Offense, Defense, and Cloud™
  • LDR512: Security Leadership Essentials for Managers™

Tags:
  • Artificial Intelligence (AI)
  • Cybersecurity Leadership
  • Security Awareness

Related Content

Blog
ICS - Blog - ICS_OT Cybersecurity & AI- Considerations for Now and the Future - Part 2_340 x 340.jpg
Industrial Control Systems Security, Artificial Intelligence (AI)
October 16, 2024
ICS/OT Cybersecurity & AI: Considerations for Now and the Future (Part II)
Integrating AI into ICS/OT cybersecurity and engineering processes presents opportunities for enhanced efficiency, resiliency, and safety.
DeanParsons_340x340.png
Dean Parsons
read more
Blog
MGT - Blog - Practical Applications of GenAI in a SOC_340 x 340.jpg
Cybersecurity Leadership
September 26, 2024
Practical Applications of GenAI in a SOC
There are a few standout candidates for the application of GenAI with Data Loss Prevention (DLP) alerts.
Shawn_Chakravarty_340x340.png
Shawn Chakravarty
read more
Blog
AI Blog.png
Artificial Intelligence (AI)
September 9, 2024
A Visual Summary of SANS AI Cybersecurity Summit 2024
Check out these graphic recordings created in real-time throughout the event for SANS AI Cybersecurity Summit 2024
No Headshot Available
Alison Kim
read more
  • Company
  • Mission
  • Instructors
  • About
  • FAQ
  • Press
  • Contact Us
  • Careers
  • Policies
  • Training Programs
  • Work Study
  • Academies & Scholarships
  • Public Sector Partnerships
  • Law Enforcement
  • SkillsFuture Singapore
  • Degree Programs
  • Get Involved
  • Join the Community
  • Become an Instructor
  • Become a Sponsor
  • Speak at a Summit
  • Join the CISO Network
  • Award Programs
  • Partner Portal
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
Cote D'ivoire
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
Eswatini
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
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania, United Republic Of
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 State
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.
  • Privacy Policy
  • Terms and Conditions
  • Do Not Sell/Share My Personal Information
  • Contact
  • Careers
© 2025 The Escal Institute of Advanced Technologies, Inc. d/b/a SANS Institute. Our Terms and Conditions detail our trademark and copyright rights. Any unauthorized use is expressly prohibited.
  • Twitter
  • Facebook
  • Youtube
  • LinkedIn