To be absolutely sure, you'll need to:
* Consult a repair manual: A Haynes or Chilton manual specific to your year and model Malibu will have diagrams showing the exact location.
* Use an online parts diagram: Many auto parts websites (like AutoZone, Advance Auto Parts, etc.) allow you to look up parts diagrams for your vehicle. Searching for "2000 Chevrolet Malibu 3.1L knock sensor" should bring up a diagram.
Be prepared that accessing the sensor may require removing some other components (like the engine cover or other parts obstructing the view).