You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Attacker generates a complex prompt that is resource intensive
malicious_prompt = """
Here is a very long and convoluted prompt with excessive detail and repetition that will require the model to process a huge number of tokens leading to slow performance and high costs: <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt> <long prompt>
"""
# Make repeated calls to expensive model with resource-heavy prompt