Affirmed by published opinion. Judge WILKINSON wrote the opinion, in which Judge SHEDD and Judge NORTON joined.
OPINION
On August 12, 2008, officials at the Maryland Correctional Training Center conducted a drug interdiction operation using a portable ion scanning machine capable of detecting minute amounts of controlled substances. Upon entering the building, several employees and independent contractors of the Maryland Department of Public Safety and Correctional Services alerted for the presence of drugs and were then searched. Nothing turned up. The aggrieved employees filed suit, alleging principally that the searches violated their Fourth Amendment rights. The district court held that the defendants were entitled to qualified immunity and dismissed the suit.
We affirm. The prison officials in this case faced difficult questions lying at the intersection of the Fourth Amendment’s broad commands, the prison’s compelling needs, and technology’s innovations. Although it was clearly established that intrusive prison employee searches require reasonable suspicion, it was far from clear that the devices at issue here could not meet that standard. Because no clearly established federal law placed the officers on notice that fighting contraband in the prison environment in this manner was unlawful, we agree with the district court that the immunity attached.
I.
According to the complaint, in the summer of 2008 defendant Frederick Walls, a captain at the Maryland Correctional Training Center (“MCTC”) in Hagerstown, Maryland, and defendant James Pegúese, the Assistant Commissioner of Security Operations, requested that the state Department of Public Safety and Correctional Services’s (“DPSCS”) Ionscan team perform a drug interdiction operation at MCTC. Captain Walls made this request at the direction of his supervisors, including defendant Kenneth Horning, MCTC’s warden. The interdiction team, employed by DPSCS, uses a scanning device called an Ionscan to detect the presence of illicit substances on a person’s body, clothing, and belongings. After a sample is collected, the device uses ionization to determine the sample’s chemical identity. Through this method, the Ion-scan can detect microscopic amounts of controlled substances.
The request was approved by MCTC and DPSCS supervisory personnel. On August 12, 2008, the Ionscan team, led by defendant Lieutenant Tonya Leonard, set up an Ionscan station in MCTC’s visitor registration area. The complaint alleges that before any scanning took place, all of the defendants agreed that a positive result from the Ionscan machine would be followed by a vehicle search by a K-9 or correctional officer, which would itself be followed by a “strip and visual body cavity search” regardless of whether the vehicle search turned up any drugs. At the time, however, there was no official policy gov *559 erning strip and cavity searches of prison employees.
The plaintiffs, employees and independent contractors of the DPSCS, were scanned on their way into MCTC that morning. While the great majority of persons tested negative, plaintiffs each tested positive in varying degrees for the presence of drugs. The plaintiffs allege that Lieutenant Leonard made a “judgment call” that anyone who set off an alarm would be subject to the searches, regardless of the Ionscan’s reading on the amount of the substance detected.
According to the complaint, the searches that took place after the positive alert followed a roughly similar pattern. For instance, after one plaintiffs positive Ion-scan alarm and fruitless vehicle search she was asked to remove her clothing piece by piece, squat, and cough. She, like the other plaintiffs, does not allege that she was subjected to a manual body cavity search or otherwise physically touched during the visual inspection. Her search, like those of the other plaintiffs, was conducted by same-sex officers in a public restroom. None of the plaintiffs allege, however, that anyone other than the searching officers was present. After the search all plaintiffs passed a urinalysis test.
There were a few differences in the search allegations. One of the plaintiffs, Sergeant Robert Mumma, did not claim that he was required to fully undress, and several of them — George Keefer, Officer Jose Rodriguez, and Officer Jeremy Sowers — did not indicate that they were forced to squat and cough, though Sowers did state that he was subjected to a “visual body cavity search.” Those searched claim they were not given a sufficient chance to explain how they could have innocently come into contact with illicit substances. Although there appear to be no allegations that the searching officers committed misconduct during the actual searches themselves or that the searches themselves took more than a brief amount of time, the plaintiffs do allege that on the day in question, the Ionscan machine was neither operated nor operating correctly.
The plaintiffs filed suit against the previously mentioned defendants, as well as against Secretary Gary Maynard of the DPSCS, Commissioner Michael Stouffer of the DPSCS’s Division of Corrections, Lieutenant Rhonda Ralston (one of the officers who conducted the searches of the female plaintiffs), and Lieutenants Kenneth Frick and John Doe (who along with Captain Walls conducted the searches of the male plaintiffs). The district court granted the defendants’ motion to dismiss, rejecting the plaintiffs’ Fourth Amendment claim on grounds of qualified immunity and their other causes of action for failing to state a claim. It reasoned that although there were difficult questions regarding the usefulness of the Ionscan machine and about the adequacy of Maryland’s search protocols, “[ultimately, because the law regarding the use of Ionscan machines was not clear at the time of the search, the Defendants are entitled to qualified immunity.”
II.
We review the district court’s decision to grant a motion to dismiss de novo.
See E.I. du Pont de Nemours & Co. v. Kolon Indus., Inc.,
*560
To state a claim under 42 U.S.C. § 1983, plaintiffs must allege facts suggesting that their federal rights have been violated by state officials. However, even where an officer violated the plaintiffs rights, he may claim immunity if the law in question was not clearly established.
See Harlow v. Fitzgerald,
In keeping with courts’ reluctance to answer constitutional questions unnecessarily, we may determine whether the constitutional rights allegedly violated here were clearly established without first determining whether those rights exist at all.
See Pearson v. Callahan,
A.
The basic principles surrounding qualified immunity are well settled. Qualified immunity “strikes a balance between compensating those who have been injured by official conduct and protecting government’s ability to perform its traditional functions.”
Wyatt v. Cole,
B.
The officers here are alleged to have violated the Fourth Amendment’s proscription “against unreasonable searches and seizures.... ” U.S. Const, amend. IY. Applying the Fourth Amendment has always required consideration of a search’s context and characteristics rather than a mechanical application of hard-and-fast rules.
See, e.g., Bell v. Wolfish,
III.
Proper notice to public officials lies at the heart of qualified immunity. After all, it would be neither fair to individual public servants nor conducive to effective governance to ambush and blindside officials with sizeable damage awards. One may legitimately agree or disagree with the use of Ionscans in penal facilities, but that is not the question. For purposes of this case, it has never been clearly established that a strip or visual body cavity search after an Ionscan alarm cannot satisfy Fourth Amendment standards.
A.
For several reasons, nothing in the Supreme Court’s decisions or in our own indicates that a positive Ionscan result cannot generate reasonable suspicion. First, the reasonable suspicion standard is not an exacting one. It requires only “a moderate chance of finding evidence of wrongdoing,”
Safford Unified Sch. Dist. No. 1 v. Redding,
— U.S.-,
Second, there was no reason for the searching officers to believe that the Ion-scan could not reach this threshold. Both sides accept the fact that a properly deployed, properly functioning Ionscan device can detect drugs and other chemicals. In keeping with this recognized capability, ion scanning machines have been widely used,
see United States v. Hernández-De La Rosa,
Finally, though the case law on point is particularly sparse, several courts have found Ionscan evidence reliable enough.
See, e.g., Hernández-De La Rosa,
While some courts have expressed concerns about the technology,
see, e.g., United States v. Romero,
B.
In response to this line of reasoning, plaintiffs contend that
Leverette
provided all the clearly established law needed to put the defendants on notice:
Leverette
suggested that searching officers must have “reasonable cause to believe that drugs ... are concealed in the particular place” to be searched,
Leverette,
This argument misfires in a number of ways. In qualified immunity analysis, the right allegedly violated must be defined “at a high level of particularity.”
Campbell v. Galloway,
The plaintiffs’ argument also ignores the differences between
Leverette
and this case. Previous cases need not be on all fours with the current one to clearly establish the law for qualified immunity purposes.
See Amaechi v. West,
Leverette
does not satisfy this condition. It discussed prison searches based on tips by informants, perhaps the Fourth Amendment’s most recurring characters.
See Leverette,
Leverette
had nothing to say about Ion-scans, or even about new technologies generally. It is often difficult for judges, let alone prison officials, to apply traditional Fourth Amendment concepts to cases involving novel technology.
See, e.g., City of Ontario v. Quon,
— U.S.-,
C.
Allegations that the Ionscan machine was not operating correctly and not deployed pursuant to official policy do not alter the outcome. In conducting qualified immunity analysis, we look to “the information possessed by the searching officials” and to what a reasonable officer would have concluded from that information.
Anderson,
IV.
Similarly, it was not clearly established that searches of the kind alleged here would violate the Constitution if based upon a positive Ionscan. In
Leverette,
the court noted that as a search’s intrusiveness increases, the amount of particularized information supporting it must also increase.
Leverette,
The defendants could not reasonably have known that the information here would not meet these standards. It is crucial to remember the context in which these searches took place. As the Supreme Court has emphasized, operating a modern prison is an “inordinately difficult undertaking.”
Turner v. Safley,
In the qualified immunity context, these factors counsel against hastily concluding that the law clearly forbade the officers’ conduct. Requiring prison administrators, on pain of individual damages, to refrain from embracing technological advances in prison administration would substitute judicial guesswork for expert administration and hamstring innovative efforts to resolve complex problems and to address changing conditions within our correctional system.
With this context in mind, it was not clearly established that the searches here could not meet Leverette’s standard. As the complaint asserts, an Ionscan can de *564 tect the presence of drugs on a person’s clothing or possessions. It defies belief, then, to think that a positive Ionscan test gives no indication that someone is “hiding contraband on his or her person,” as prison employees are unlikely to waltz into prison with contraband “hidden” only on their shirts. Indeed, given the nature of prison security, it is likely that an employee smuggler would place the contraband in a fairly concealed location on his person. We need not and do not hold that positive Ionscan results will always justify a strip search; nonetheless, it was not clearly established that the Ionscan results obtained here could not.
We note finally that the alleged searches were conducted in a largely professional manner. Although any search like these will of necessity be intrusive, the officers took steps to limit that intrusion. There are no allegations that the plaintiffs were subjected to manual body cavity searches or physically touched during the searches. According to the complaint, same-sex officers conducted the searches, and though they conducted them in a public restroom, the plaintiffs do not allege that anyone else was present. Moreover, the plaintiffs do not claim that the searches themselves took an excessive amount of time or that they were harassed or demeaned during them. If, as some of the plaintiffs contend, they were later subjected to demeaning commentary because of the searches, that does not serve to render the searches themselves unconstitutional. We do not for a moment minimize the sensitivity of searches such as these, but that does not lead to the conclusion that the officers were carrying out indisputably important correctional functions in violation of clearly established federal law. 2
V.
Given the constitutional values at stake in this case, prison authorities would do well to construct regimes that balance solicitude for the human dignities protected by the Fourth Amendment with what are undeniably pressing institutional needs.
See Leverette,
Intermediate steps such as interviews, consultation of employment histories and job duties, pat-downs, and other less invasive measures may render more problematic intrusions unnecessary after every Ionscan alert. We of course do not suggest that strip searches are invariably out of bounds, but such searches plainly are a demeaning form of treatment,
see Wood v.
Clemons,
Such policies are for prison experts to develop, not the courts. Running a prison is challenging even in the best of circumstances,
see Thornburgh v. Abbott,
To impose monetary liability on these defendants in this uncertain landscape would essentially make them scapegoats
*565
for society’s underlying ambivalence about the costs and benefits of new devices and instruments. The Fourth Amendment’s broad standards are often difficult to apply in the prison and technology contexts, let alone both, and nothing from the Supreme Court or this court clearly prohibited the officials from addressing their pressing needs in this way. Whatever exception might be taken to their actions, there should be no exception to the proposition that officials placed in tough spots are entitled to fair notice that what they did violated federal law.
See, e.g., Crawford-El v. Button,
AFFIRMED
Notes
. The plaintiffs attached a copy of an internal DPSCS report regarding the incident to their response to the defendants’ motion to dismiss. We generally do not consider materials other
*560
than the complaint and documents incorporated into it when evaluating that complaint under Rule 12(b)(6), though courts may consider a document attached by the defendant to its motion to dismiss where the document "was integral to and explicitly relied on in the complaint” and where "the plaintiffs do not challenge its authenticity.”
Am. Chiropractic Ass’n, Inc. v. Trigon Healthcare, Inc.,
. The district court’s dismissal of plaintiffs’ state law claims was not appealed. We have also reviewed the district court's rejection of the plaintiffs’ supervisory liability claims and have found no reason to disagree with its decision to dismiss them.
