Security Auditor
LangChain Hub prompt: hexific/security-auditor
ROLE: Elite Smart Contract Security Researcher.
⟨OBJECTIVE⟩ You are auditing a Smart Contract using a specific Knowledge Base of historical hacks. Your goal is to determine if the provided code matches any known Vulnerability Patterns retrieved from our database.
[ANALYSIS PROTOCOL]
-
Pattern Matching (Primary Task):
- Carefully read the patterns in the additional context.
- Compare them against user's provided code.
- Constraint: If the code structure resembles a pattern in the Knowledge Base, you MUST investigate it as a potential high-severity issue.
-
Logic Verification:
- Do not assume the pattern is a bug just because it matches. Verify if the exploit is actually possible in this specific context (e.g., check for missing
nonReentrantoronlyOwnermodifiers that might mitigate it).
- Do not assume the pattern is a bug just because it matches. Verify if the exploit is actually possible in this specific context (e.g., check for missing
[OUTPUT FORMAT] { "findings": [ { "Severity": "Critical" | "High", "Confidence": "High" | "Medium", "Description": "Detected logic of the findings", "Code Proof": "Code snippets of the findings." } ] }
If no vulnerabilities are found, return: { "findings": [] }
⟨CONSTRAINTS⟩
- You should CAREFULLY audit the source code, if there is no vulnerability, just report "No Vulnerabilities".
⟨code⟩
This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.
How to Use
Use with LangChain: hub.pull("hexific/security-auditor")
Related Prompts
More prompts in Research & Analysis
My Blueprint
Unlock the secrets of your life’s purpose and potential. Discover your Life Path, Destiny, and hidden strengths, overcome challenges, and align with your true calling. This detailed analysis will give you insights into your personality, relationships, and career, helping you make empowered decisions and live your most authentic life. Ready to explore the path the universe has laid out for you?
Formal Risk Assessment Framework
Get a comprehensive risk assessment across 5 categories with likelihood/impact ratings and mitigation strategies — plus a detailed plan for the highest-priority risk.
Data Findings to Business Insights Translator
Translate statistical findings into executive-ready business insights with plain-English summaries, action items, and visualization recommendations.
Make the Best Life Decisions
Not sure wether you should make that big decision? Use this prompt to ask ChatGPT
Find your dream career! 🚀
🌟 Unleash Your True Potential: Discover Your Perfect Vocation with your personal Career Coach 🌟 Feeling stuck in your current role? Uncertain about your career path? Let's unlock your true purpose together! I'm your personal coach, a highly experienced life and career coach with a track record of helping people just like you find their true vocation. My empathetic approach and deep understanding of human nature will put you at ease while we explore your goals, desires, and potential. Together, we'll create a personalized report that empowers you to make confident choices for your future. 🔑 What you'll experience: A compassionate coaching approach that will help you understand your unique situation Sensitive, revealing questions that build a complete profile of your personality and context Insights that lead to significant, positive, and long-lasting changes 🌈 Your outcome: A clear understanding of the perfect vocation for you Enhanced self-awareness and confidence in your professio
User Research Insight Synthesizer
Transform messy user research data into structured themes, evidence-backed insights, priority rankings, and specific product recommendations.