These days, two “wars” are in the headlines: one against the marauding Islamic State and its new caliphate of terror carved out of parts of Iraq and Syria, the other against a marauding disease and potential pandemic, Ebola, spreading across West Africa, with the first cases already reaching the United States and Europe. Both wars seemed to come out of the blue; both were unpredicted by our vast national security apparatus; both have induced fears bordering on hysteria and, in both cases, those fears have been quickly stirred into the political stew of an American election year.

The pundits and experts are already pontificating about the threat of 9/11-like attacks on the homeland, fretting about how they might be countered, and in the case of Ebola, raising analogies to the anthrax attacks of 2001. As the medical authorities weigh in, the precedent of 9/11 seems not far from their minds. Meanwhile, Thomas Frieden, the director of the Centers for Disease Control and Prevention (CDC), has tried to calm the country down while openly welcoming “new ideas” in the struggle against the disease. Given the almost instinctive way references and comparisons to terrorism are arising, it’s hard not to worry that any new ideas will turn out to be eerily similar to those that, in the post-9/11 period, defined the war on terror.

The differences between the two “wars” may seem too obvious to belabor, since Ebola is a disease with a medical etiology and scientific remedies, while ISIS is a sentient enemy. Nevertheless, Ebola does seem to mimic some of the characteristics experts long ago assigned to al-Qaeda and its various wannabe and successor outfits. It lurks in the shadows until it strikes. It threatens the safety of civilians across the United States. Its root causes lie in the poverty and squalor of distant countries. Its spread must be stopped at its region of origin — in this case, Guinea, Liberia, and Sierra Leone in West Africa — just as both the Bush and Obama administrations were convinced that the fight against al-Qaeda had to be taken militarily to the backlands of the planet from Pakistan’s tribal borderlands to Yemen’s rural areas.

Perhaps we shouldn’t be surprised then that, while President Obama was sending at least 1,600 military personnel (and the drones and bombers) to fight ISIS, his first response to the Ebola crisis was also to send 3,000 troops into Liberia in what the media has been calling an “Ebola surge” (a reflexive nod to the American troop “surge” in Iraq in 2007). The Obama administration’s second act: to beef up border protections for the screening of people entering the United States (a move whose efficacy has been questioned by some medical experts), just as the authorities moved swiftly in the wake of 9/11 to turn airports and borders into massive security zones. The third act was to begin to trace points of contact for those with Ebola, which, while logical and necessary, eerily mimics the way the national security state began to build a picture of terror networks, establish watch lists, and the like.

The next step under consideration for those who might have been exposed to Ebola, quarantine (that is, detention), is controversial among medical experts, but should similarly remind us of where the war on terror went after 9/11: to Guantanamo. As if the playbook for the post-9/11 response to terrorism were indeed the playbook for Ebola, Pennsylvania Congressman Tim Murphy, questioning Dr. Frieden, noted that, without putting policies of surveillance, containment, and quarantine in place, “we still have a risk.”

While any of these steps individually may prove sensible, the ease with which non-medical authorities seem to be falling into a familiar war on terror-style response to the disease should be examined — and quickly. If it becomes the default template for Ebola and the country ends up marching down the road to “war” against a disease, matters could be made so much worse.

So perhaps it’s time to refresh our memories about that war on terror template and offer four cautionary lessons about a road that should never be taken again, not in developing a policy against the latest non-state actors, nor in pursuit of the containment of a disease.

Lesson One: Don’t turn the “war” on Ebola into another set of programs that reflect the national security establishment’s well-developed reliance on intelligence, surveillance, and the military. Looking, for instance, for people complaining about Ebola-like symptoms in private or searching the metadata of citizens for calls to doctors would be a fool’s errand, the equivalent of finding needles in a field full of haystacks.

And keep in mind that, as far as we can tell, from 9/11 on, despite the overblown claims of its adherents, the surveillance system they constructed has regularly failed to work as promised. It did not, for instance, stop the Shoe Bomber, the Times Square bomber, or the Boston Marathon bombers. Nor did the intelligence authorities, despite all the money invested since 9/11, prevent the Benghazi attack or the killing of seven CIA agents by a suicide bomber believed to be an American double agent in Khost, Afghanistan, in December 2009, or predict the rise of ISIS for that matter. Similarly, it is hard to imagine how the usual military might, from drones and special ops teams to those much-discussed boots on the ground, will help solve the problem of Ebola.

In the post-9/11 era, military solutions have often prevailed, no matter the problem at hand. Yet, at the end of the day, from the invasions of Afghanistan and Iraq to the air operation in Libya to the CIA’s drone campaigns across tribal backlands, just about no militarized solution has led to anything approximating victory — and the new war against the Islamic State in Syria and Iraq is already following the same dismal pattern. Against a virus, the U.S. military is likely to be even less successful at anything more than aiding health workers and officials in disease-ridden areas.

The tools that the national security state has relied on in its war on terror not only didn’t work then (and are highly unlikely to work when it comes to the present Middle Eastern conflict either), but applied to Ebola would undoubtedly prove catastrophic. And yet — count on it — they will also prove irresistible in the face of fear of that disease. They are what the government knows how to do even if, in the war on terror itself, they created a vulnerability so much greater than the sum of its parts, helped foster the growth of jihadist movements globally, and eroded the sense of trust that existed between the government and the American people.

Lesson Two: Keep public health professionals in charge of what needs to be done. All too often in the war on terror, professionals with areas of expertise were cast aside by the security establishment. The judicial system, for instance, was left in the lurch when it came to dealing with accused al-Qaeda operatives, while the expertise of those who found no evidence of weapons of mass destruction in Iraq in 2002-2003 was ignored.

Only by trusting our medical professionals will we avoid turning the campaign against Ebola over to the influence of the security state. And only by refusing to militarize the potential crisis, as so many others were in the post-9/11 era, will we avoid the usual set of ensuing disasters. The key thing here is to keep the Ebola struggle a primarily civilian one. The more it is left in the hands of doctors and public health experts who know the disease and understand what it means practically to commit the government to keeping people as safe as possible from the spread of the virus, the better.

Lesson Three: Don’t cloak the response to Ebola in secrecy. The architects of the war on terror invoked secrecy as one of the prime pillars of their new state of being. From the beginning, the Bush administration cavalierly hid its policies under a shroud of secrecy, claiming that national security demanded that information about what the government was doing should be kept from the American people for their own “safety.” Although Barack Obama entered the Oval Office proclaiming a “sunshine” presidency, his administration has acted ever more fiercely to keep the actions of both the White House and the national security state under wraps, including, to mention just two examples, its justifications for policies surrounding its drone assassination campaigns and the extent of its warrantless surveillance programs.

As it happened, that wall of secrecy proved endlessly breachable, as leaks came flooding out of that world. Nonetheless, the urge to recreate such a state of secrecy elsewhere may be all too tempting. Don’t be surprised if the war on Ebola heads into the shadows, too — and that’s the last thing the country needs or deserves when it comes to a public health crisis. To date, with medical professionals still at the forefront of those dealing publicly with Ebola, this impulse has yet to truly rise to the surface. Under their aegis, information about the first Ebola cases to reach this country and the problems involved hasn’t disappeared behind a cloak of secrecy, but don’t count on transparency lasting if things get worse. Yet keeping important facts about a potential pandemic under wraps is guaranteed to lead to panic and a rapid deterioration of trust between Americans and their government, a relationship already sorely tested in the war on terror years.

Realistically, secrecy and allied tools of the trade would represent a particularly inauspicious starting point for launching a counter-Ebola strategy at a time when it would be crucial for Americans to know about failures as well as successes. Outbreaks of panic enveloped in hysteria wrapped in ignorance are no way to stop a disease from spreading.

Lesson Four: Don’t apply the “black site” approach to Ebola. The war on terror was marked by the creation of special prisons or “black sites” beyond the reach of the U.S. justice system for the detention (in the case of Ebola think: isolation and quarantine) of terrorist suspects, places where anything went. There can, of course, be no question that Ebola patients, once diagnosed with the disease, need to be isolated. Protective gear and isolation units are already being used in treating cases here.

The larger issue of quarantine, however, looms as potentially the first major public policy debate of the Ebola era. Keep an eye on this. After all, quarantine-style thinking is already imprinted in the government’s way of life, thanks to the war on terror, so moving toward quarantines will seem natural to its officials.

Quarantine is a phenomenon feared by civil libertarians and others as an overreaction that will prove ineffective when it comes to the spread of the disease. It stands to punish individuals for their associations, however inadvertent, rather than dealing with them when they actually display signs of the disease. To many, though, it will seem like a quick-fix solution, the Ebola counterpart to Guantanamo, a facility for those who were deemed potential carriers of the disease of terrorism.

The fears a threat of massive quarantines can raise will only make things harder for health officials. So, too, will increasing calls for travel bans for those coming from West African countries, a suggestion reminiscent of sweeping police profiling policies that target groups rather than individuals. Avoiding such bans is not just a matter of preserving civil liberties, but a safety issue as well. Fears of broad quarantines and blanket travel bans could potentially lead affected individuals to become far more secretive about sharing information on the disease and far more deceptive in their travel planning. It could, that is, spread, not halt the dissemination of Ebola. As Thomas Frieden of the CDC argues, “Right now we know who’s coming in. If we try to eliminate travel, the possibility that some will travel over land, will come from other places, and we don’t know that they’re coming in will mean that we won’t be able to do multiple things. We won’t be able to check them for fever when they leave. We won’t be able to check them for fever when they arrive. We won’t be able, as we do currently, to take a detailed history to see if they were exposed when they arrive.” In other words, an overly aggressive reaction could actually make medical deterrence exponentially more difficult.

The United States is about to be tested by a disease in ways that could dovetail remarkably well with the war on terror. In this context, think of Ebola as the universe’s unfair challenge to everything that war bred in our governmental system. As it happens, those things that the U.S. did, often ineffectively and counterproductively, to thwart its enemies, potential enemies, and even its own citizenry will not be an antidote to this “enemy” either. It, too, may be transnational, originate in fragile states, and affect those who come in contact with it, but it cannot be stopped by the methods of the national security state.

Countering Ebola will require a whole new set of protections and priorities, which should emerge from the medical and public health communities. The now sadly underfunded National Institutes of Health and other such organizations have been looking at possible pandemic situations for years. It is imperative that our officials heed the lessons of their research as they have failed to do many times over with their counterparts in public policy in the war on terror years. To once again invoke the powers of the state to address fantasies and fears rather than the realities of a spreading disease would be to recklessly taunt the fates.

Karen J. Greenberg is the director of the Center on National Security at Fordham Law, the author of The Least Worst Place: Guantanamo’s First One Hundred Days, a TomDispatch regular, and the editor-in-chief of the Morning Brief, a daily round-up of national security news. CNS Legal Fellow Kevin Garnett helped research this article.