It also described the US army psychiatrist who carried out the massacre in Texas as a "hero".
The SITE Intelligence Group, which monitors jihadist websites, said it had picked up a Taliban message praising the attack.
The message said: "The recent attack on the military base in Texas warns that if the occupation policy of the American rulers continues in this way, without them folding the carpets of occupation and transgression in Afghanistan and Iraq, it is natural then that incidents and attacks similar to Texas will spread to the Pentagon and other American military centres.
"According to media reports, the hero of the attack is a Muslim psychiatrist and major in the American army, of Palestinian origin."
Maj. Nidal Malik Hasan killed 13 people and wounded 29 in the attack last Thursday at America's largest military base. He was due to be deployed to Afghanistan later this month.
Law enforcement agencies have said he acted alone and was not directed by al-Qaeda or the Taliban.
Hasan has emerged from a coma after being shot four times by two civilian police officers. He has invoked his right to a lawyer and investigators are still waiting to interview him. (Source: Telegraph UK)