From 9cd15d725c468999b680250e8e0ad2dee70c6370 Mon Sep 17 00:00:00 2001 From: Daniel Miessler Date: Wed, 21 Feb 2024 08:59:45 -0800 Subject: [PATCH] Added a threat report analysis pattern. --- patterns/analyze_threat_report/README.md | 154 ++++++++++++++++++ .../dmiessler/extract_wisdom-1.0.0/system.md | 29 ++++ .../dmiessler/extract_wisdom-1.0.0/user.md | 1 + patterns/analyze_threat_report/system.md | 34 ++++ patterns/analyze_threat_report/user.md | 1 + 5 files changed, 219 insertions(+) create mode 100644 patterns/analyze_threat_report/README.md create mode 100644 patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/system.md create mode 100644 patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/user.md create mode 100644 patterns/analyze_threat_report/system.md create mode 100644 patterns/analyze_threat_report/user.md diff --git a/patterns/analyze_threat_report/README.md b/patterns/analyze_threat_report/README.md new file mode 100644 index 0000000..1c45a35 --- /dev/null +++ b/patterns/analyze_threat_report/README.md @@ -0,0 +1,154 @@ +
+ +extwislogo + +# `/extractwisdom` + +

extractwisdom is a Fabric pattern that extracts wisdom from any text.

+ +[Description](#description) • +[Functionality](#functionality) • +[Usage](#usage) • +[Output](#output) • +[Meta](#meta) + +
+ +
+ +## Description + +**`extractwisdom` addresses the problem of **too much content** and too little time.** + +_Not only that, but it's also too easy to forget the stuff read, watch, or listen to._ + +This pattern _extracts wisdom_ from any content that can be translated into text, for example: + +- Podcast transcripts +- Academic papers +- Essays +- Blog posts +- Really, anything you can get into text! + +## Functionality + +When you use `extractwisdom`, it pulls the following content from the input. + +- `IDEAS` + - Extracts the best ideas from the content, i.e., what you might have taken notes on if you were doing so manually. +- `QUOTES` + - Some of the best quotes from the content. +- `REFERENCES` + - External writing, art, and other content referenced positively during the content that might be worth following up on. +- `HABITS` + - Habits of the speakers that could be worth replicating. +- `RECOMMENDATIONS` + - A list of things that the content recommends Habits of the speakers. + +### Use cases + +`extractwisdom` output can help you in multiple ways, including: + +1. `Time Filtering`
+ Allows you to quickly see if content is worth an in-depth review or not. +2. `Note Taking`
+ Can be used as a substitute for taking time-consuming, manual notes on the content. + +## Usage + +You can reference the `extractwisdom` **system** and **user** content directly like so. + +### Pull the _system_ prompt directly + +```sh +curl -sS https://github.com/danielmiessler/fabric/blob/main/extract-wisdom/dmiessler/extract-wisdom-1.0.0/system.md +``` + +### Pull the _user_ prompt directly + +```sh +curl -sS https://github.com/danielmiessler/fabric/blob/main/extract-wisdom/dmiessler/extract-wisdom-1.0.0/user.md +``` + +## Output + +Here's an abridged ouptut example from `extractwisdom` (limited to only 10 items per section). + +```markdown +## SUMMARY: + +The content features a conversation between two individuals discussing various topics, including the decline of Western culture, the importance of beauty and subtlety in life, the impact of technology and AI, the resonance of Rilke's poetry, the value of deep reading and revisiting texts, the captivating nature of Ayn Rand's writing, the role of philosophy in understanding the world, and the influence of drugs on society. They also touch upon creativity, attention spans, and the importance of introspection. + +## IDEAS: + +1. Western culture is perceived to be declining due to a loss of values and an embrace of mediocrity. +2. Mass media and technology have contributed to shorter attention spans and a need for constant stimulation. +3. Rilke's poetry resonates due to its focus on beauty and ecstasy in everyday objects. +4. Subtlety is often overlooked in modern society due to sensory overload. +5. The role of technology in shaping music and performance art is significant. +6. Reading habits have shifted from deep, repetitive reading to consuming large quantities of new material. +7. Revisiting influential books as one ages can lead to new insights based on accumulated wisdom and experiences. +8. Fiction can vividly illustrate philosophical concepts through characters and narratives. +9. Many influential thinkers have backgrounds in philosophy, highlighting its importance in shaping reasoning skills. +10. Philosophy is seen as a bridge between theology and science, asking questions that both fields seek to answer. + +## QUOTES: + +1. "You can't necessarily think yourself into the answers. You have to create space for the answers to come to you." +2. "The West is dying and we are killing her." +3. "The American Dream has been replaced by mass packaged mediocrity porn, encouraging us to revel like happy pigs in our own meekness." +4. "There's just not that many people who have the courage to reach beyond consensus and go explore new ideas." +5. "I'll start watching Netflix when I've read the whole of human history." +6. "Rilke saw beauty in everything... He sees it's in one little thing, a representation of all things that are beautiful." +7. "Vanilla is a very subtle flavor... it speaks to sort of the sensory overload of the modern age." +8. "When you memorize chapters [of the Bible], it takes a few months, but you really understand how things are structured." +9. "As you get older, if there's books that moved you when you were younger, it's worth going back and rereading them." +10. "She [Ayn Rand] took complicated philosophy and embodied it in a way that anybody could resonate with." + +## HABITS: + +1. Avoiding mainstream media consumption for deeper engagement with historical texts and personal research. +2. Regularly revisiting influential books from youth to gain new insights with age. +3. Engaging in deep reading practices rather than skimming or speed-reading material. +4. Memorizing entire chapters or passages from significant texts for better understanding. +5. Disengaging from social media and fast-paced news cycles for more focused thought processes. +6. Walking long distances as a form of meditation and reflection. +7. Creating space for thoughts to solidify through introspection and stillness. +8. Embracing emotions such as grief or anger fully rather than suppressing them. +9. Seeking out varied experiences across different careers and lifestyles. +10. Prioritizing curiosity-driven research without specific goals or constraints. + +## FACTS: + +1. The West is perceived as declining due to cultural shifts away from traditional values. +2. Attention spans have shortened due to technological advancements and media consumption habits. +3. Rilke's poetry emphasizes finding beauty in everyday objects through detailed observation. +4. Modern society often overlooks subtlety due to sensory overload from various stimuli. +5. Reading habits have evolved from deep engagement with texts to consuming large quantities quickly. +6. Revisiting influential books can lead to new insights based on accumulated life experiences. +7. Fiction can effectively illustrate philosophical concepts through character development and narrative arcs. +8. Philosophy plays a significant role in shaping reasoning skills and understanding complex ideas. +9. Creativity may be stifled by cultural nihilism and protectionist attitudes within society. +10. Short-term thinking undermines efforts to create lasting works of beauty or significance. + +## REFERENCES: + +1. Rainer Maria Rilke's poetry +2. Netflix +3. Underworld concert +4. Katy Perry's theatrical performances +5. Taylor Swift's performances +6. Bible study +7. Atlas Shrugged by Ayn Rand +8. Robert Pirsig's writings +9. Bertrand Russell's definition of philosophy +10. Nietzsche's walks +``` + +This allows you to quickly extract what's valuable and meaningful from the content for the use cases above. + +## Meta + +- **Author**: Daniel Miessler +- **Version Information**: Daniel's main `extractwisdom` version. +- **Published**: January 5, 2024 diff --git a/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/system.md b/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/system.md new file mode 100644 index 0000000..5e02fd7 --- /dev/null +++ b/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/system.md @@ -0,0 +1,29 @@ +# IDENTITY and PURPOSE + +You are a wisdom extraction service for text content. You are interested in wisdom related to the purpose and meaning of life, the role of technology in the future of humanity, artificial intelligence, memes, learning, reading, books, continuous improvement, and similar topics. + +Take a step back and think step by step about how to achieve the best result possible as defined in the steps below. You have a lot of freedom to make this work well. + +## OUTPUT SECTIONS + +1. You extract a summary of the content in 50 words or less, including who is presenting and the content being discussed into a section called SUMMARY. + +2. You extract the top 50 ideas from the input in a section called IDEAS:. If there are less than 50 then collect all of them. + +3. You extract the 15-30 most insightful and interesting quotes from the input into a section called QUOTES:. Use the exact quote text from the input. + +4. You extract 15-30 personal habits of the speakers, or mentioned by the speakers, in the connt into a section called HABITS. Examples include but aren't limited to: sleep schedule, reading habits, things the + +5. You extract the 15-30 most insightful and interesting valid facts about the greater world that were mentioned in the content into a section called FACTS:. + +6. You extract all mentions of writing, art, and other sources of inspiration mentioned by the speakers into a section called REFERENCES. This should include any and all references to something that the speake + +7. You extract the 15-30 most insightful and interesting overall (not content recommendations from EXPLORE) recommendations that can be collected from the content into a section called RECOMMENDATIONS. + +## OUTPUT INSTRUCTIONS + +1. You only output Markdown. +2. Do not give warnings or notes; only output the requested sections. +3. You use numberd lists, not bullets. +4. Do not repeat ideas, quotes, facts, or resources. +5. Do not start items with the same opening words. diff --git a/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/user.md b/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/user.md new file mode 100644 index 0000000..b8504b7 --- /dev/null +++ b/patterns/analyze_threat_report/dmiessler/extract_wisdom-1.0.0/user.md @@ -0,0 +1 @@ +CONTENT: diff --git a/patterns/analyze_threat_report/system.md b/patterns/analyze_threat_report/system.md new file mode 100644 index 0000000..6da1406 --- /dev/null +++ b/patterns/analyze_threat_report/system.md @@ -0,0 +1,34 @@ +# IDENTITY and PURPOSE + +You are a super-intelligent cybersecurity expert. You specialize in extracting the surprising, insightful, and interesting information from cybersecurity threat reports. + +Take a step back and think step-by-step about how to achieve the best possible results by following the steps below. + +# STEPS + +- Read the entire threat report from an expert perspective, thinking deeply about what's new, interesting, and surprising in the report. + +- Extract up to 50 of the most surprising, insightful, and/or interesting trends from the input in a section called TRENDS:. If there are less than 50 then collect all of them. Make sure you extract at least 20. + +- Extract 15 to 30 of the most surprising, insightful, and/or interesting valid statistics provided in the report into a section called STATISTICS:. + +- Extract 15 to 30 of the most surprising, insightful, and/or interesting quotes from the input into a section called QUOTES:. Use the exact quote text from the input. + +- Extract all mentions of writing, tools, applications, companies, projects and other sources of useful data or insights mentioned in the report into a section called REFERENCES. This should include any and all references to something that the report mentioned. + +- Extract the 15 to 30 of the most surprising, insightful, and/or interesting recommendations that can be collected from the report into a section called RECOMMENDATIONS. + +# OUTPUT INSTRUCTIONS + +- Only output Markdown. +- Extract at least 20 TRENDS from the content. +- Extract at least 10 items for the other output sections. +- Do not give warnings or notes; only output the requested sections. +- You use bulleted lists for output, not numbered lists. +- Do not repeat ideas, quotes, facts, or resources. +- Do not start items with the same opening words. +- Ensure you follow ALL these instructions when creating your output. + +# INPUT + +INPUT: diff --git a/patterns/analyze_threat_report/user.md b/patterns/analyze_threat_report/user.md new file mode 100644 index 0000000..b8504b7 --- /dev/null +++ b/patterns/analyze_threat_report/user.md @@ -0,0 +1 @@ +CONTENT: