A program executing apparatus includes a first storage section which
stores data permitted to be leaked out; a second storage section which
stores secret data of a user; a communication section which can
communicate with an external unit; a program storage section which stores
at least one application program; and a program executing section, checks
a possibility that the secret data could be leaked out to the external
unit, and stops the execution of the at least one application program
when it is determined that the secret data could be leaked out. The check
of the possibility that the secret data could be leaked out is based on
whether the at least one application program contains a process of
communicating with the external unit or a process of writing data in the
first storage section and a process of reading the secret data from the
second storage section.