HK-47

"*I am like a veritable fable, warning against the karma caused by murdering others, a morality tale if you will. What utter irony.*"
―HK-47, to Revan

HK-47 was originally constructed by the Dark Lord of the Sith Darth Revan shortly after the final battle of the Mandalorian Wars in 3960 BBY. Revan was still a Jedi Knight serving as the commander of the Republic forces at this point and decided to resort to extreme tactics to decisively end the war. As a result, the battle devastated the entire surface of Malachor V, where it was fought, and destroyed the majority of the warships on both sides. Not long after the end of the war, Revan and his friend, Malak, fell to the dark side and began making plans to conquer the Republic.
In the wake of widespread destruction caused by the Mass Shadow Generator, a superweaponused during the final battle of that conflict, Revan was inspired to seek more subtle methods of defeating his enemies. HK-47 was sent throughout the galaxy on his missions and successfully assassinatedcountless targets whom Revan had deemed threats to galactic stability and peace. However, HK-47 was badly crippled and captured on a mission in Mandalorian space shortly before Revan himself wascaptured by the Jedi Order.
As per protocol with Sith assassin droids prior to going on missions, HK-47's memory core was wiped of all knowledge of his original master. His memory could only be restored upon fulfilling his mission, and successfully returning to his master. As he never managed to return to his master, the automatic recall function was never activated, and he couldn’t remember Revan.[1] He went from owner to owner, many of whom he inadvertently slew personally. Eventually, he ended up on the planet Tatooine, where he was sold to and unwittingly reunited with Revan, whose memory had been erased following his capture. The droid went on to aid Revan after his return to the Jedi Order in his campaign to find and destroy the Star Forge, an ancient factory that Revan had used during his reign as the Dark Lord of the Sith. HK-47 was also instrumental in the defeat of Revan's former Sith apprentice, who had since begun utilizing the Star Forge in an attempt to conquer the Galactic Republic.

HK-47 accompanied Revan to the edge of the Unknown Regions along with Revan's utility droid, T3-M4, before being left behind in Revan's starship, the *Ebon Hawk*, as the redeemed Jedi Knight journeyed on to face a threat he had remembered from his time as the Dark Lord. Sometime later, HK-47 was damaged and was left aboard the *Ebon Hawk*, which eventually ended up in the hands of one of Revan's allies from the Mandalorian Wars, Meetra Surik, also known as the Jedi Exile. During this period, HK-50 assassin droids, a newer version of HK that G0-T0 had mass-produced, became active in the galaxy, working as bounty hunters and saboteurs. Surik repaired HK-47, who recognized her as his new master and accompanied her in order to find the source of the HK-50s, whose very existence he considered an insult to himself. HK-47 also aided Surik in her search for the Jedi Masters who survived the First Jedi Purge and even advised her on techniques to more efficiently kill Jedi so that Surik could better defend herself.

HK-47 eventually succeeded in finding the HK Manufacturing Plant, where the HK-50s were created. There, he convinced the HK-50s to join his and Surik's cause. This action eventually culminated in a final confrontation on Malachor V between HK-47, assisted by the HK-50s, and G0-T0, whose interests conflicted with that of Surik, and the latter droid was destroyed. After his time with Surik, HK-47 set out on his own to attempt to find Revan, his original master, not knowing that Revan had since been captured by the Sith Empire and was being held in stasis. Three hundred years later, HK-47 was found by a returned Revan and aided him in commanding the Rakatan Foundry, and though he was destroyed, he was rebuilt several more times within the following years by different masters.

Four millennia later, HK-47 was found on the planet Mustafar, where his memory core was preserved within the computer of a derelict starship. HK-47 manipulated a group of spacers who discovered him, having them create a new body for him and then subsequently turning on them with the help of several battle droids. The spacers were forced to disable HK-47's new droid army as well as the factory producing them. After a fierce battle, the spacers triumphed over the droids, although HK-47 managed to escape destruction.