Canadian Forces Sub-Lt. Jeffrey Paul Delisle walked into the Russian Embassy in Ottawa in 2007 and offered to sell secrets to that country's military intelligence agency, beginning an espionage career that lasted almost four years, according to court details revealed by CBC News after the naval officer pleaded guilty to spying.

Delisle, 41, pleaded guilty in a Halifax court Wednesday to breach of trust and two counts of passing information to a foreign entity between July 2007 and Jan. 13, 2011, in Ottawa and Kingston, Ont., and Halifax and Bedford, N.S., where he lived.

- Jeffrey Delisle: What's known about the naval officer turned spy

According to previously unpublished material from a bail hearing, Delisle walked into the embassy wearing a red ball cap and civilian clothes. He flashed his Canadian military identification and asked to meet with someone from GRU, the Russian military intelligence.

Delisle was posted to the security unit HMCS Trinity, an intelligence facility at the naval dockyard in Halifax. It tracks vessels entering and exiting Canadian waters via satellites, drones and underwater devices.

While there he worked on a system called the Stone Ghost, said CBC reporter Rob Gordon.

"It's a computer system that links the five eyes. The five eyes are the United States, Britain, Australia, New Zealand and Canada. All their information is shared on the Stone Ghost computer.

"He would go to work every time with a thumb drive and download reams of information, which he would then send to the Russians on a monthly basis. This went on for years and years and years."

He was paid between $2,800 and $3,000 a month for the information.

In 2009, when Delisle wanted to stop dealing with the Russians, they sent him a picture of his daughter walking to school in Halifax.

Shortly thereafter, the navy officer was told to meet his GRU handler in Brazil.

The Russians told Delisle they wanted him to be a pigeon, a spy term for a person who deals with all the secret operatives in an area. In this case it was Canada.

Delisle agreed and was handed $50,000 in cash. But when he couldn't get the money through Canadian security, the GRU gave him $40,000 in pre-paid credit cards and $10,000 in cash.

When he landed at the Halifax airport, customs agents wanted to know why he was in Brazil, why he only spent a few days there and why he had thousands of dollars in cash.

Delisle told him he was on vacation, that he only spent a few days there because he didn't have much time and that he always liked to travel with cash.

Guards allowed him to enter Canada, but were suspicious and notified the military that they suspected some kind of wrongdoing.

It was then the military and RCMP began an investigation, which resulted in a raid on Delisle's house in December 2011.

Preliminary hearing cut short

Delisle's preliminary hearing was scheduled to start Wednesday morning, but the lawyer told the judge his client would plead guilty to all three charges.

The judge asked Delisle, "Do you understand the charges?" and he nodded yes, reported the CBC's Stephen Puddicombe.

He wore the same grey-blue hoodie and jeans he has worn to all his court appearances since his arrest.

After Delisle entered his plea, it was determined that his sentencing hearing will be Jan. 10 and 11.

He's the first Canadian to face charges under the country's Security of Information Act.

That act lays out an array of breaches, ranging from threatening the safety of the Forces to selling software and the technical details of operations.

The Criminal Code charge can net a five-year prison sentence, and convictions under the Security of Information Act can lead to life in prison.

Delisle was posted to the security unit HMCS Trinity, a multinational base with access to secret data from NATO countries.

Related on HuffPost:

Declassfied CIA, FBI Spy Gear

Loading Slideshow...
  • Suicide Pin

    If a CIA operative were caught, he could choose capture or death by this pin. When twisted the right way, the silver dollar would unleash a pin coated in saxitoxin. Its user would die in seconds from the poison.

  • Assassination Umbrella

    Spies aren't usually assassins. But some weapons, like this umbrella, have been used in the field. The assassination umbrella is equipped with a pellet of toxic ricin that will infect and kill its target slowly over the course of a few days. Its last known use was on Bulgarian defector and BBC reporter Georgi Markov in London, 1978.

  • Dead Drop Brick

    Spies in Moscow in the 60s had a variety of "dead drops" they could use to secretly pass around notes and other contraband, including these hollow bricks.

  • Dead Drop Rat

    Rats' hollowed-out bodies also served as an effective dead drop for money, notes and other contraband being moved around Moscow.

  • Exploding Coal Paint Set

    Spies would use fake, exploding coal to sabotage supply lines -- and this paint set to make the coal look real.

  • Matchbox Camera

    In the 40s, spies were using cameras smaller than your smartphone!

  • Sleeping Beauty

    Think you could be a spy? Try floating a one-man submarine into Singapore harbor and planting mines on Japanese ships in World War II. Not easy, but this submersible is cool.

  • Lock Picks Kit

    And they all fit in this handy dandy sheath.

  • Time-Delay Pencil Detonators

    With these bad boys, you could even get away BEFORE the explosion.

  • Beano Grenade

    The OSS designed the Beano grenade to feel like a baseball and explode on impact -- rather than bouncing away from its target and blowing up elsewhere.