The invention relates to a safety JTAG module and a method for protecting security of information inside a
chip, wherein the safety JTAG module comprises a nonvolatile medium (206), a loading circuit (205), a security attribute
control register (214), a TAP controller (201), two selectors (207 and 211), a switch (203), a
password authentication module and a logic
processing module; the TAP controller (201) and the two selectors (207 and 211) are connected between a JTAG port (1) and a protected object inside the
chip; the switch (203) is switched by the control of a
timer (202); the
password authentication module is used for authenticating whether a clear-text
password input by a user is accordant with a fuzzification password or not; and the logic
processing module is used for logically
processing an
authentication result output by the password authentication module and an indication
signal output by the security attribute
control register (214) and outputting an enable
signal to the two selectors (207 and 211) so as to control whether the JTAG port (1) is allowed to be connected with the protected object inside the
chip through the TAP controller (201) or not. The invention ensures the security and the convenience of an SOC chip in testing and debugging processes, thereby protecting the security of data inside the chip.