Both IIT Roorkee and IIT KGP have top-notch security on campus and are extremely safe for female students so you can rest all your worries. Infact, the quality standards of the security are pretty good considering the fact that it is a government Institute.
However, the campus has many dogs and other animals, which might scare many people. These are usually harmless unless you provoke them.